# usedHeapSizeLong

> Returns the number of bytes that Unity has allocated. This does not include bytes allocated by external libraries or drivers.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.Profiling](/engine/6000.6/script-reference/unityengine/profiling.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static long usedHeapSizeLong { get; }
```
