Version: 2020.3
LanguageEnglish
  • C#
Experimental: this API is experimental and might be changed or removed in the future.

NativeMemoryRegionEntries

class in UnityEditor.Profiling.Memory.Experimental

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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

Properties

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 Methods

GetNumEntriesGets the number of memory region entries.