# Sandbox.Diagnostics.PerformanceStats

- Kind: class
- Namespace: `Sandbox.Diagnostics`
- Assembly: `Sandbox.Engine`
- Modifiers: static, abstract, sealed

## Properties

- [`ApproximateProcessMemoryUsage`](/api/Sandbox.Diagnostics.PerformanceStats/ApproximateProcessMemoryUsage): Approximate working set of this process.
- [`BytesAllocated`](/api/Sandbox.Diagnostics.PerformanceStats/BytesAllocated): 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.
- [`Exceptions`](/api/Sandbox.Diagnostics.PerformanceStats/Exceptions): Number of exceptions in the last frame.
- [`FrameTime`](/api/Sandbox.Diagnostics.PerformanceStats/FrameTime): Get the time taken, in seconds, that were required to process the previous frame.
- [`GcPause`](/api/Sandbox.Diagnostics.PerformanceStats/GcPause): How many ticks we paused in the last frame
- [`Gen0Collections`](/api/Sandbox.Diagnostics.PerformanceStats/Gen0Collections): Number of generation 0 (fastest) garbage collections were done in the last frame.
- [`Gen1Collections`](/api/Sandbox.Diagnostics.PerformanceStats/Gen1Collections): Number of generation 1 (fast) garbage collections were done in the last frame.
- [`Gen2Collections`](/api/Sandbox.Diagnostics.PerformanceStats/Gen2Collections): Number of generation 2 (slow) garbage collections were done in the last frame.
- [`GpuFrameNumber`](/api/Sandbox.Diagnostics.PerformanceStats/GpuFrameNumber): Frame number of the last reported [Sandbox.Diagnostics.PerformanceStats.GpuFrametime](/api/Sandbox.Diagnostics.PerformanceStats/GpuFrametime).
- [`GpuFrametime`](/api/Sandbox.Diagnostics.PerformanceStats/GpuFrametime): Latest available GPU frametime, in ms.
- [`LastSecond`](/api/Sandbox.Diagnostics.PerformanceStats/LastSecond): Performance statistics over the last period, which is dictated by "perf_time" console command.
