# Sandbox.Diagnostics.PerformanceStats.BytesAllocated

```csharp
static long BytesAllocated { get; set; }
```

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.

Declared in [Sandbox.Diagnostics.PerformanceStats](/api/Sandbox.Diagnostics.PerformanceStats).
Assembly: `Sandbox.Engine`.
