Class AllocStats
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Collects per frame managed allocation and garbage collector statistics.
csharp
public class AllocStatsInheritance
object ← AllocStats
Properties
Capture
Gets or sets whether allocation data is actively collected this frame.
csharp
public bool Capture { get; set; }Property Value
bool
Methods
DisplayAllocations(TextRenderer, Camera, float, float, float)
Renders allocation and GC statistics to screen using the provided text renderer.
csharp
public void DisplayAllocations(TextRenderer textRenderer, Camera camera, float x = 0.02, float y = 0.05, float scale = 11)Parameters
textRenderer TextRenderer
Text renderer to use for display.
camera Camera
Camera for positioning text.
x float
X position (0-1 as fraction of screen width).
y float
Y position (0-1 as fraction of screen height).
scale float
Text scale.
Dispose()
Releases the allocation event listener.
csharp
public void Dispose()
