Api Sandbox Diagnostics PerformanceStats
class

PerformanceStats

public static abstract sealed class PerformanceStats

Properties

Name Type Description
FrameTime static Double Get the time taken, in seconds, that were required to process the previous frame.
GpuFrametime static Single Latest available GPU frametime, in ms.
GpuFrameNumber static UInt32 Frame number of the last reported GpuFrametime.
BytesAllocated static Int64 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.
Gen0Collections static Int32 Number of generation 0 (fastest) garbage collections were done in the last frame.
Gen1Collections static Int32 Number of generation 1 (fast) garbage collections were done in the last frame.
Gen2Collections static Int32 Number of generation 2 (slow) garbage collections were done in the last frame.
GcPause static Int64 How many ticks we paused in the last frame
Exceptions static Int32 Number of exceptions in the last frame.
ApproximateProcessMemoryUsage static UInt64 Approximate working set of this process.
LastSecond static Block Performance statistics over the last period, which is dictated by "perf_time" console command.
Assembly: Sandbox.Engine Namespace: Sandbox.Diagnostics Full Name: Sandbox.Diagnostics.PerformanceStats