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

NativeMemoryRegionEntries

class in UnityEditor.Profiling.Memory.Experimental

/

Implemented in:UnityEditor

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.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答