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

NativeMemoryRegionEntries

class in UnityEditor.Profiling.Memory.Experimental

Switch to Manual

Description

A class housing native memory region data, returned by PackedMemorySnapshot.nativeMemoryRegions.

Variables

addressBaseAn array containing addresses of the memory regions. Non-leaf entries containing child memory regions are set to 0.
addressSizeAn array that contains the accumulated size, in bytes, including all of its children, of the memory region.
firstAllocationIndexAn array that contains indexes into the PackedMemorySnapshot.nativeAllocations array that identify the first allocation that the memory region contains.
memoryRegionNameAn array containing the names of the memory regions.
numAllocationsAn array that contains the number of allocations, including children, that the memory regions contain.
parentIndexThe parent of this memory region, referenced by index into this entry array. The root memory region contains parent index of -1.

Public Functions

GetNumEntriesGets the number of memory region entries.