Returns the used size from mono.
function Update() {
#if ENABLE_PROFILER
System.GC.Collect();
Debug.Log("Mono used size" + Profiler.GetMonoUsedSize() + "Bytes");
#endif
}
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { }
import UnityEngine import System.Collections public class Example(MonoBehaviour): pass