stop method
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;
}