getHeapUsage method

  1. @experimental
Future<HeapUsage> getHeapUsage()

Returns the JavaScript heap usage. It is the total usage of the corresponding isolate not scoped to a particular Runtime.

Implementation

@experimental
Future<HeapUsage> getHeapUsage() async {
  final WipResponse response = await sendCommand('Runtime.getHeapUsage');
  return HeapUsage(response.result!);
}