[fuchsia] Timeline events in profile mode to observatory (flutter/engine#15900)

This is to address fxb/44063

In all the other modes they will be sent to the systrace
This commit is contained in:
Kaushik Iska
2020-01-23 11:53:03 -08:00
committed by GitHub
parent 656b2c77f6
commit 74cbca7c98
2 changed files with 4 additions and 1 deletions

View File

@@ -380,7 +380,8 @@ DartVM::DartVM(std::shared_ptr<const DartVMData> vm_data,
args.push_back(old_gen_heap_size_args.c_str());
}
#if defined(OS_FUCHSIA)
#if defined(OS_FUCHSIA) && \
(FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_PROFILE)
PushBackAll(&args, kDartFuchsiaTraceArgs, fml::size(kDartFuchsiaTraceArgs));
PushBackAll(&args, kDartTraceStreamsArgs, fml::size(kDartTraceStreamsArgs));
#endif

View File

@@ -39,7 +39,9 @@ const char* kDartVMArgs[] = {
// addressed.
"--no_causal_async_stacks",
#if !defined(FLUTTER_PROFILE)
"--systrace_timeline",
#endif
"--timeline_streams=Compiler,Dart,Debugger,Embedder,GC,Isolate,VM",
#if defined(AOT_RUNTIME)