Skip to content

Commit

Permalink
feat(devtools): add v8 js profile
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Nov 5, 2024
1 parent d48be7a commit d58a106
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions devtools/devtools-integration/native/src/v8/trace_control.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ void TraceControl::StartTracing() {
auto trace_config = v8::platform::tracing::TraceConfig::CreateDefaultTraceConfig();
trace_config->SetTraceRecordMode(v8::platform::tracing::TraceRecordMode::RECORD_CONTINUOUSLY);
trace_config->AddIncludedCategory(kTraceIncludedCategoryV8);
trace_config->EnableSystrace();
trace_config->AddIncludedCategory("devtools.timeline");
trace_config->AddIncludedCategory("v8.execute");
trace_config->AddIncludedCategory("disabled-by-default-devtools.timeline");
trace_config->AddIncludedCategory("disabled-by-default-devtools.timeline.frame");
trace_config->AddIncludedCategory("disabled-by-default-devtools.timeline.stack");
trace_config->AddIncludedCategory("disabled-by-default-v8.cpu_profiler");
trace_config->AddIncludedCategory("disabled-by-default-v8.cpu_profiler.hires");
trace_config->AddIncludedCategory("latencyInfo");
v8_trace_control_->StartTracing(trace_config);
tracing_has_start_ = true;
}
Expand Down

0 comments on commit d58a106

Please sign in to comment.