isWebSocketProfilingAvailable method

Future<bool> isWebSocketProfilingAvailable(
  1. String isolateId
)

Whether WebSocket profiling is available for the given isolateId.

Implementation

Future<bool> isWebSocketProfilingAvailable(String isolateId) async {
  final Isolate isolate = await getIsolate(isolateId);
  return (isolate.extensionRPCs ?? []).contains(
    'ext.dart.io.getWebSocketProfile',
  );
}