Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a1949d6

Browse files
author
Kaushik Iska
committed
[fuchsia] Timeline events in profile mode to observatory
This is to address fxb/44063 In all the other modes they will be sent to the systrace
1 parent 14fefe3 commit a1949d6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

runtime/dart_vm.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,8 @@ DartVM::DartVM(std::shared_ptr<const DartVMData> vm_data,
380380
args.push_back(old_gen_heap_size_args.c_str());
381381
}
382382

383-
#if defined(OS_FUCHSIA)
383+
#if defined(OS_FUCHSIA) && \
384+
(FLUTTER_RUNTIME_MODE != FLUTTER_RUNTIME_MODE_PROFILE)
384385
PushBackAll(&args, kDartFuchsiaTraceArgs, fml::size(kDartFuchsiaTraceArgs));
385386
PushBackAll(&args, kDartTraceStreamsArgs, fml::size(kDartTraceStreamsArgs));
386387
#endif

shell/platform/fuchsia/dart_runner/dart_runner.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ const char* kDartVMArgs[] = {
3939
// addressed.
4040
"--no_causal_async_stacks",
4141

42+
#if !defined(FLUTTER_PROFILE)
4243
"--systrace_timeline",
44+
#endif
4345
"--timeline_streams=Compiler,Dart,Debugger,Embedder,GC,Isolate,VM",
4446

4547
#if defined(AOT_RUNTIME)

0 commit comments

Comments
 (0)