API ReferenceSandbox.Diagnostics

PerformanceStatsclass

objectPerformanceStats
Namespace
Sandbox.Diagnostics
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.Diagnostics.PerformanceStats

Properties11

Showing 11 properties

public static ulong Sandbox.Diagnostics.PerformanceStats.ApproximateProcessMemoryUsage { get; set; }PUBLICSTATICGETSET

Approximate working set of this process.

Returns:ulong

public static long Sandbox.Diagnostics.PerformanceStats.BytesAllocated { get; set; }PUBLICSTATICGETSET

The number of bytes that were allocated on the managed heap in the last frame. This may not include allocations from threads other than the game thread.

Returns:long

public static int Sandbox.Diagnostics.PerformanceStats.Exceptions { get; set; }PUBLICSTATICGETSET

Number of exceptions in the last frame.

Returns:int

public static double Sandbox.Diagnostics.PerformanceStats.FrameTime { get; set; }PUBLICSTATICGETSET

Get the time taken, in seconds, that were required to process the previous frame.

Returns:double

public static long Sandbox.Diagnostics.PerformanceStats.GcPause { get; set; }PUBLICSTATICGETSET

How many ticks we paused in the last frame

Returns:long

public static int Sandbox.Diagnostics.PerformanceStats.Gen0Collections { get; set; }PUBLICSTATICGETSET

Number of generation 0 (fastest) garbage collections were done in the last frame.

Returns:int

public static int Sandbox.Diagnostics.PerformanceStats.Gen1Collections { get; set; }PUBLICSTATICGETSET

Number of generation 1 (fast) garbage collections were done in the last frame.

Returns:int

public static int Sandbox.Diagnostics.PerformanceStats.Gen2Collections { get; set; }PUBLICSTATICGETSET

Number of generation 2 (slow) garbage collections were done in the last frame.

Returns:int

public static uint Sandbox.Diagnostics.PerformanceStats.GpuFrameNumber { get; set; }PUBLICSTATICGETSET

Frame number of the last reported `Sandbox.Diagnostics.PerformanceStats.GpuFrametime`.

Returns:uint

public static float Sandbox.Diagnostics.PerformanceStats.GpuFrametime { get; set; }PUBLICSTATICGETSET

Latest available GPU frametime, in ms.

Returns:float

public static Sandbox.Diagnostics.PerformanceStats.Block Sandbox.Diagnostics.PerformanceStats.LastSecond { get; set; }PUBLICSTATICGETSET

Performance statistics over the last period, which is dictated by "perf_time" console command.

Returns:Block

On this page