requestHeapSnapshot method Null safety

Future<Success> requestHeapSnapshot(
  1. String isolateId

Requests a dump of the Dart heap of the given isolate.

This method immediately returns success. The VM will then begin delivering binary events on the HeapSnapshot event stream. The binary data in these events, when concatenated together, conforms to the SnapshotGraph type. The splitting of the SnapshotGraph into events can happen at any byte offset.

If isolateId refers to an isolate which has exited, then the Collected Sentinel is returned.

This method will throw a SentinelException in the case a Sentinel is returned.


Future<Success> requestHeapSnapshot(String isolateId);