Mono のヒープのサイズを返します。
これは Mono が割り当てに使用する予約済みのシステムメモリです。
function Update() {
#if ENABLE_PROFILER
Debug.Log("Allocated Mono heap size" + Profiler.GetMonoHeapSize() + "Bytes");
#endif
}
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { }