Future<Null> startTracing({List<TimelineStream> streams: _defaultStreams })

Starts recording performance traces.

Source

Future<Null> startTracing({List<TimelineStream> streams: _defaultStreams}) async {
  assert(streams != null && streams.length > 0);
  try {
    await _peer.sendRequest(_kSetVMTimelineFlagsMethod, <String, String>{
      'recordedStreams': _timelineStreamsToString(streams)
    });
    return null;
  } catch(error, stackTrace) {
    throw new DriverError(
      'Failed to start tracing due to remote error',
      error,
      stackTrace
    );
  }
}