getWebSocketProfile method

Future<WebSocketProfile> getWebSocketProfile(
  1. String isolateId, {
  2. DateTime? updatedSince,
})

The getWebSocketProfile RPC is used to retrieve WebSocket profiling information collected by dart:io.

Implementation

Future<WebSocketProfile> getWebSocketProfile(
  String isolateId, {
  DateTime? updatedSince,
}) async {
  assert(await isWebSocketProfilingAvailable(isolateId));
  return _callHelper(
    'ext.dart.io.getWebSocketProfile',
    isolateId,
    args: {
      if (updatedSince != null)
        'updatedSince': updatedSince.microsecondsSinceEpoch,
    },
  );
}