MemorySnapshotCapture class
Captures memory allocation snapshots from a running VM service.
Constructors
- MemorySnapshotCapture({required VmService vmService})
- Creates a memory snapshot capture instance.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
captureSnapshot(
{required String isolateId, String? name, bool forceGc = true}) → Future< MemorySnapshot> -
Captures an allocation profile snapshot from
isolateId. -
clearSnapshots(
) → void - Clears all saved snapshots.
-
compareSnapshots(
String beforeName, String afterName) → MemorySnapshotDelta - Compares two saved snapshots and returns the delta.
-
getSnapshot(
String name) → MemorySnapshot? - Retrieves a previously saved snapshot by name.
-
listSnapshotNames(
) → List< String> - Lists all saved snapshot names.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeSnapshot(
String name) → void - Removes a saved snapshot.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited