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

Commit e385c1b

Browse files
authored
[Fuchsia] Pass command line arguments for tracing (#3868)
1 parent 74d6f60 commit e385c1b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

runtime/dart_init.cc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ static const char* kDartEndlessTraceBufferArgs[]{
107107
"--timeline_recorder=endless",
108108
};
109109

110+
static const char* kDartFuchsiaTraceArgs[] FTL_ALLOW_UNUSED_TYPE = {
111+
"--systrace_timeline",
112+
"--timeline_streams=VM,Isolate,Compiler,Dart,GC",
113+
};
114+
110115
constexpr char kFileUriPrefix[] = "file://";
111116
constexpr size_t kFileUriPrefixLength = sizeof(kFileUriPrefix) - 1;
112117

@@ -495,6 +500,10 @@ void InitDartVM(const uint8_t* vm_snapshot_data,
495500
PushBackAll(&args, kDartTraceStartupArgs, arraysize(kDartTraceStartupArgs));
496501
}
497502

503+
#if defined(OS_FUCHSIA)
504+
PushBackAll(&args, kDartFuchsiaTraceArgs, arraysize(kDartFuchsiaTraceArgs));
505+
#endif
506+
498507
for (size_t i = 0; i < settings.dart_flags.size(); i++)
499508
args.push_back(settings.dart_flags[i].c_str());
500509

0 commit comments

Comments
 (0)