isHttpTimelineLoggingAvailable method

Future<bool> isHttpTimelineLoggingAvailable(
  1. String isolateId
)

Whether HTTP timeline logging is available for the given isolateId.

Implementation

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