isSocketProfilingAvailable method

Future<bool> isSocketProfilingAvailable(
  1. String isolateId
)

Whether socket profiling is available for the given isolateId.

Implementation

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