ドキュメント

Unity Engine

Unity Engine

GetMonoHeapSize()

Returns the size of the mono heap.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

注意
Deprecated. GetMonoHeapSize has been deprecated since it is limited to 4GB. Please use GetMonoHeapSizeLong() instead.
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 }}