getSocketProfile method

Future<SocketProfile> getSocketProfile(
  1. String isolateId
)

The getSocketProfile RPC is used to retrieve socket statistics collected by the socket profiler. Only samples collected after the initial socketProfilingEnabled call or the last call to clearSocketProfile will be reported.

Implementation

Future<SocketProfile> getSocketProfile(String isolateId) async {
  assert(await isSocketProfilingAvailable(isolateId));
  return _callHelper('ext.dart.io.getSocketProfile', isolateId);
}