用户工具

站点工具


侧边栏

script:unityengine:classes:profiler:profiler.getmonoheapsize

Profiler.GetMonoHeapSize 获取Mono堆栈大小

JavaScript ⇒ public static function GetMonoHeapSize(): uint;
C# ⇒ public static uint GetMonoHeapSize();

Description 描述

Returns the size of the mono heap.

返回Mono堆栈大小。

This is the reserved system memory that Mono is using for allocations.

这保留了Mono 分配的系统内存。

JavaScript:

function Update() {
		#if ENABLE_PROFILER
			Debug.Log("Allocated Mono heap size" + Profiler.GetMonoHeapSize() + "Bytes");
		#endif
	}

C#:

using UnityEngine;
using System.Collections;
 
public class ExampleClass : MonoBehaviour {
}

profiler

script/unityengine/classes/profiler/profiler.getmonoheapsize.txt · 最后更改: 2016/08/02 05:37 (外部编辑)