HeapSnapshotGraph class
A graph representation of a heap snapshot.
Constructors
-
HeapSnapshotGraph.fromChunks(List<
ByteData> chunks, {bool calculateReferrers = true, bool decodeObjectData = true, bool decodeExternalProperties = true, bool decodeIdentityHashCodes = true}) -
Populates the HeapSnapshotGraph by parsing the events from the
HeapSnapshot
stream.
Properties
- capacity → int
-
The amount of memory reserved for this heap in bytes.
no setter
-
classes
→ List<
HeapSnapshotClass> -
The list of classes found in this snapshot.
no setter
-
externalProperties
→ List<
HeapSnapshotExternalProperty> -
The list of external properties found in this snapshot.
no setter
- externalSize → int
-
The sum of sizes of all external properties in this graph in bytes.
no setter
- flags → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name of the isolate represented by this heap snapshot.
no setter
-
objects
→ List<
HeapSnapshotObject> -
The list of objects found in this snapshot.
no setter
- referenceCount → int
-
At least as big as the sum of all HeapSnapshotObject.references.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shallowSize → int
-
The sum of shallow sizes of all objects in this graph in bytes.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toChunks(
) → List< ByteData> -
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, {bool calculateReferrers = true, bool decodeObjectData = true, bool decodeExternalProperties = true, bool decodeIdentityHashCodes = true}) → Future< HeapSnapshotGraph> - Requests a heap snapshot for a given isolate and builds a HeapSnapshotGraph.