GetTotalAllocatedMemory()
Returns the amount of allocated and used system memory.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Profiling
- Assembly: UnityEngine.CoreModule
public static uint GetTotalAllocatedMemory()
Returns
Type | Description |
|---|---|
| uint |
Remarks
The game uses the amount of memory returned by Profiler.GetTotalAllocatedMemory. As GameObjects are instantiated and other GameObjects loaded or created, the value returned increases, showing that more memory is being used.
Additional Resources: Profiler.GetTotalUnusedReservedMemory, Profiler.GetTotalReservedMemory.