enable method

Future<void> enable({
  1. @Enum(['timeTicks', 'threadTicks']) String? timeDomain,
})

Enable collecting and reporting metrics. timeDomain Time domain to use for collecting and reporting duration metrics.

Implementation

Future<void> enable({
  @Enum(['timeTicks', 'threadTicks']) String? timeDomain,
}) async {
  assert(
    timeDomain == null ||
        const ['timeTicks', 'threadTicks'].contains(timeDomain),
  );
  await _client.send('Performance.enable', {
    if (timeDomain != null) 'timeDomain': timeDomain,
  });
}