enable method

Future<void> enable(
  1. List<String> eventTypes
)

Previously buffered events would be reported before method returns. See also: timelineEventAdded eventTypes The types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported.

Implementation

Future<void> enable(List<String> eventTypes) async {
  await _client.send('PerformanceTimeline.enable', {
    'eventTypes': [...eventTypes],
  });
}