GetMonoHeapSize()
Returns the size of the mono heap.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Profiling
- Assembly: UnityEngine.CoreModule
public static uint GetMonoHeapSize()
Returns
Type | Description |
|---|---|
| uint |
Remarks
This is the reserved system memory that Mono is using for allocations.
Examples
using UnityEngine;using UnityEngine.Profiling;public class Example : MonoBehaviour{ void Update() { #if ENABLE_PROFILER Debug.Log("Allocated Mono heap size" + Profiler.GetMonoHeapSize() + "Bytes"); #endif }}