getMemoryUsage method

  1. @override
Future<MemoryUsage> getMemoryUsage(
  1. String isolateId

The getMemoryUsage RPC is used to lookup an isolate's memory usage statistics by its id.

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

See Isolate.

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


Future<MemoryUsage> getMemoryUsage(String isolateId) =>
    _call('getMemoryUsage', {'isolateId': isolateId});