Unverified Commit c8c575c8 authored by Ming Lyu (CareF)'s avatar Ming Lyu (CareF) Committed by GitHub

update TimelineStream in `flutter_driver` (#64258)

parent abbd5b14
...@@ -41,6 +41,9 @@ enum TimelineStream { ...@@ -41,6 +41,9 @@ enum TimelineStream {
/// Marks events from the Dart VM's JIT compiler. /// Marks events from the Dart VM's JIT compiler.
compiler, compiler,
/// The verbose version of compiler.
compilerVerbose,
/// Marks events emitted using the `dart:developer` API. /// Marks events emitted using the `dart:developer` API.
dart, dart,
......
...@@ -651,13 +651,15 @@ Future<VMServiceClientConnection> _waitAndConnect( ...@@ -651,13 +651,15 @@ Future<VMServiceClientConnection> _waitAndConnect(
/// the VM service. /// the VM service.
const Duration _kPauseBetweenReconnectAttempts = Duration(seconds: 1); const Duration _kPauseBetweenReconnectAttempts = Duration(seconds: 1);
// See https://github.com/dart-lang/sdk/blob/master/runtime/vm/timeline.cc#L32 // See `timeline_streams` in
// https://github.com/dart-lang/sdk/blob/master/runtime/vm/timeline.cc
String _timelineStreamsToString(List<TimelineStream> streams) { String _timelineStreamsToString(List<TimelineStream> streams) {
final String contents = streams.map<String>((TimelineStream stream) { final String contents = streams.map<String>((TimelineStream stream) {
switch (stream) { switch (stream) {
case TimelineStream.all: return 'all'; case TimelineStream.all: return 'all';
case TimelineStream.api: return 'API'; case TimelineStream.api: return 'API';
case TimelineStream.compiler: return 'Compiler'; case TimelineStream.compiler: return 'Compiler';
case TimelineStream.compilerVerbose: return 'CompilerVerbose';
case TimelineStream.dart: return 'Dart'; case TimelineStream.dart: return 'Dart';
case TimelineStream.debugger: return 'Debugger'; case TimelineStream.debugger: return 'Debugger';
case TimelineStream.embedder: return 'Embedder'; case TimelineStream.embedder: return 'Embedder';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment