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

TypeDescriptionEntries

class in UnityEditor.Profiling.Memory.Experimental

Switch to Manual

Description

A class that houses type description entries, returned from PackedMemorySnapshot.typeDescriptions.

Variables

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 Functions

GetNumEntriesThe number of type description entries.