stop method

Future<void> stop(
  1. StringSink output
)

Promise which resolves to buffer with trace data.

Implementation

Future<void> stop(StringSink output) async {
  var contentFuture = _devTools.tracing.onTracingComplete.first
      .then((e) => _readStream(e.stream!, output));
  await _devTools.tracing.end();

  _recording = false;
  return contentFuture;
}