HeapSnapshotGraph class Null safety

A graph representation of a heap snapshot.

Constructors

HeapSnapshotGraph.fromChunks(List<ByteData> chunks)
Populates the HeapSnapshotGraph by parsing the events from the HeapSnapshot stream.

Properties

capacity int
The amount of memory reserved for this heap in bytes. [...]
read-only
classes List<HeapSnapshotClass>
The list of classes found in this snapshot.
read-only
externalProperties List<HeapSnapshotExternalProperty>
The list of external properties found in this snapshot.
read-only
externalSize int
The sum of sizes of all external properties in this graph in bytes.
read-only
flags int
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
name String
The name of the isolate represented by this heap snapshot.
read-only
objects List<HeapSnapshotObject>
The list of objects found in this snapshot.
read-only
referenceCount int
At least as big as the sum of all HeapSnapshotObject.referenceCount.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
shallowSize int
The sum of shallow sizes of all objects in this graph in bytes.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

getSnapshot(VmService service, IsolateRef isolate) Future<HeapSnapshotGraph>
Requests a heap snapshot for a given isolate and builds a HeapSnapshotGraph. [...]