Experimental: this API is experimental and might be changed or removed in the future.

NativeAllocationEntries

class in UnityEditor.Profiling.Memory.Experimental

切换到手册

描述

包含本机分配条目数据的类,由 PackedMemorySnapshot.nativeAllocations 返回。

变量

address包含本机内存分配地址的数组。
allocationSiteId分配的分配站点 ID,由 NativeAllocationSiteEntries.id 使用。
memoryRegionIndex这是索引数组,其中的索引用于指示内存分配所表示的内存区域、起始区域、内部区域或结束区域。
overheadSize这是一个数组,用于指定返回的本机分配中有多少内存量不属于您请求的量(以字节为单位)。开销内存用于分配标头和其他描述分配的元数据。
paddingSize这是一个数组,用于指定所需的填充量(以字节为单位)以对齐返回的本机分配。
rootReferenceId用于分配的根引用 ID 数组。与 NativeRootReferenceEntries.id 数组中的条目相对应。
size包含本机分配总大小(以字节为单位)的数组。

公共函数

GetNumEntries获取分配条目的数量。