[tracing] Enable system-backend startup tracing in trace_startup [chromium/src : main]

0 views
Skip to first unread message

Clemens Backes (Gerrit)

unread,
Jul 20, 2026, 8:17:29 AMJul 20
to Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Mikhail Khokhlov, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Mikhail Khokhlov

Clemens Backes added 2 comments

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Clemens Backes . resolved

PTAL. Gemini claims that this fixes the remaining timing gap on the linked issue.

File services/tracing/public/cpp/trace_startup.cc
Line 150, Patchset 1 (Latest): // TODO(khokhlov): Support startup tracing with the system backend in the
// SDK build.
Clemens Backes . unresolved

Is this change already enough to resolve this TODO?

Open in Gerrit

Related details

Attention is currently required from:
  • Mikhail Khokhlov
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibc20640cc2f74c5d5753c88b676147183cd5f2cb
Gerrit-Change-Number: 8116953
Gerrit-PatchSet: 1
Gerrit-Owner: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
Gerrit-Attention: Mikhail Khokhlov <khok...@google.com>
Gerrit-Comment-Date: Mon, 20 Jul 2026 12:17:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Mikhail Khokhlov (Gerrit)

unread,
Jul 20, 2026, 10:03:01 AMJul 20
to Clemens Backes, Etienne Pierre-Doray, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Clemens Backes

Mikhail Khokhlov added 1 comment

File services/tracing/public/cpp/trace_startup.cc
Line 150, Patchset 1 (Latest): // TODO(khokhlov): Support startup tracing with the system backend in the
// SDK build.
Clemens Backes . unresolved

Is this change already enough to resolve this TODO?

Mikhail Khokhlov

My memory of this code is weak, but I'm pretty sure that it's not that simple. The backend has to adopt the pre-allocated shared memory buffer, which the system backend does not know how to do.

CC etiennep@ who has better understanding of this system.

Open in Gerrit

Related details

Attention is currently required from:
  • Clemens Backes
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ibc20640cc2f74c5d5753c88b676147183cd5f2cb
Gerrit-Change-Number: 8116953
Gerrit-PatchSet: 1
Gerrit-Owner: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Clemens Backes <clem...@chromium.org>
Gerrit-Reviewer: Mikhail Khokhlov <khok...@google.com>
Gerrit-CC: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Attention: Clemens Backes <clem...@chromium.org>
Gerrit-Comment-Date: Mon, 20 Jul 2026 14:02:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Clemens Backes <clem...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Etienne Pierre-Doray (Gerrit)

unread,
Jul 27, 2026, 4:03:53 PM (10 days ago) Jul 27
to Clemens Backes, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Mikhail Khokhlov, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Clemens Backes

Etienne Pierre-Doray added 2 comments

File services/tracing/public/cpp/trace_startup.cc
Line 146, Patchset 1 (Latest): auto perfetto_config = startup_config.GetPerfettoConfig();
Etienne Pierre-Doray . unresolved

If starting tracing through perfetto directly, I don't think chrome forwards it the config to renderer (unlike passing config through chrome's command line).
For startup tracing in child processes to work for system backend, we'd need the browser to forward any active config; TraceStartupConfig currently does this only for the config given in command line.

Line 150, Patchset 1 (Latest): // TODO(khokhlov): Support startup tracing with the system backend in the
// SDK build.
Clemens Backes . unresolved

Is this change already enough to resolve this TODO?

Mikhail Khokhlov

My memory of this code is weak, but I'm pretty sure that it's not that simple. The backend has to adopt the pre-allocated shared memory buffer, which the system backend does not know how to do.

CC etiennep@ who has better understanding of this system.

Etienne Pierre-Doray

+1 the system backend would need to know how to adopt buffers, passed through ConnectProducerArgs.

Gerrit-Comment-Date: Mon, 27 Jul 2026 20:03:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Mikhail Khokhlov <khok...@google.com>
Comment-In-Reply-To: Clemens Backes <clem...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Etienne Pierre-Doray (Gerrit)

unread,
Jul 27, 2026, 4:24:01 PM (9 days ago) Jul 27
to Clemens Backes, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, Mikhail Khokhlov, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Clemens Backes

Etienne Pierre-Doray added 1 comment

File services/tracing/public/cpp/trace_startup.cc
Line 146, Patchset 1 (Latest): auto perfetto_config = startup_config.GetPerfettoConfig();
Etienne Pierre-Doray . unresolved

If starting tracing through perfetto directly, I don't think chrome forwards it the config to renderer (unlike passing config through chrome's command line).
For startup tracing in child processes to work for system backend, we'd need the browser to forward any active config; TraceStartupConfig currently does this only for the config given in command line.

Etienne Pierre-Doray

We also don't currently forward the full config, only track_event one.

Gerrit-Comment-Date: Mon, 27 Jul 2026 20:23:41 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages