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

TypeDescriptionEntries

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 that houses type description entries, returned from PackedMemorySnapshot.typeDescriptions.

Properties

assemblyName of the assembly this type was loaded from.
baseOrElementTypeIndexThe base type for this type, pointed to by an index into PackedMemorySnapshot.typeDescriptions.
fieldIndicesAn array containing indices pointing to descriptions of all fields of this type, accessible from PackedMemorySnapshot.fieldDescriptions.
flagsFlags set for this type description, that define whether this type is an array or a value type, and the array rank of the type.
sizeSize in bytes of an instance of this type. If this type is an array type, this describes the amount of bytes a single element in the array will take up.
staticFieldBytesThe actual contents of the bytes that store this types static fields, at the point of time when the snapshot was taken.
typeDescriptionNameThe name of this type.
typeIndexThe type index of this type. This index is an index into the PackedMemorySnapshot.typeDescriptions array.
typeInfoAddressThe address in memory that contains the description of this type inside the virtual machine. This can be used to match managed objects in the heap to their corresponding TypeDescription, as the first pointer of a managed object points to its type description.

Public Methods

GetNumEntriesThe number of type description entries.
对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答