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

PackedMemorySnapshot

class in UnityEditor.Profiling.Memory.Experimental


Implements interfaces:ISerializationCallbackReceiver

Switch to Manual

Description

PackedMemorySnapshot is a compact representation of a memory snapshot that a player has sent through the profiler connection.

Variables

captureFlagsFlags corresponding to the fields present in a returned memory snapshot.
connectionsConnections is an array of from,to pairs that describe which things are keeping which other things alive.
fieldDescriptionsArray of Field Descriptions, referenced by Type Description entries by array index.
filePathPath to the memory snapshot file.
gcHandlesAll GC handles in use in the memorysnapshot.
managedHeapSectionsArray of actual managed heap memory sections.
managedStacksArray of managed stacks in a memory snapshot.
metadataMeta data that was collected during memory snapshot capture.
nativeAllocationsArray of native allocation data, captured in C++.
nativeAllocationSitesArray of native allocation site data, captured in C++.
nativeCallstackSymbolsArray of callstack symbols, used by native allocation site data.
nativeMemoryLabelsArray of memory labels, used by native allocation site data.
nativeMemoryRegionsArray of native memory regions, which houses native allocations.
nativeObjectsAll native C++ objects that were loaded at time of the snapshot.
nativeRootReferencesArray of native root references, which represent ownership of native allocation data.
nativeTypesDescriptions of all the C++ unity types the profiled player knows about.
recordDateThe time and date at which the snapshot was recorded.
typeDescriptionsAn array of indexes into PackedMemorySnapshot.typeDescriptions indetifying the type this field belongs to.
versionThe current snapshot format version.
virtualMachineInformationInformation about the virtual machine running executing the managed code inside the player.

Static Functions

LoadLoad memory snapshot from given file path.
SaveCopy the memory snapshot file to the given file path.