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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961