[tracing] Remove TrackRegistry::InitializeInstance in prod [chromium/src : main]

0 views
Skip to first unread message

Etienne Pierre-Doray (Gerrit)

unread,
Aug 25, 2025, 4:43:40 PMAug 25
to Chromium LUCI CQ, chromium...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Joe Mason

Etienne Pierre-Doray voted and added 1 comment

Votes added by Etienne Pierre-Doray

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 2 (Latest):
Etienne Pierre-Doray . resolved

PTAL

Open in Gerrit

Related details

Attention is currently required from:
  • Joe Mason
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
Gerrit-Change-Number: 6881588
Gerrit-PatchSet: 2
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Attention: Joe Mason <joenot...@google.com>
Gerrit-Comment-Date: Mon, 25 Aug 2025 20:43:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Etienne Pierre-Doray (Gerrit)

unread,
Aug 26, 2025, 11:44:54 AMAug 26
to AyeAye, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Etienne Pierre-Doray and Joe Mason

Message from Etienne Pierre-Doray

Set Ready For Review

Open in Gerrit

Related details

Attention is currently required from:
  • Etienne Pierre-Doray
  • Joe Mason
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
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: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
Gerrit-Change-Number: 6881588
Gerrit-PatchSet: 4
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Joe Mason <joenot...@google.com>
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Attention: Joe Mason <joenot...@google.com>
Gerrit-Comment-Date: Tue, 26 Aug 2025 15:44:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Joe Mason (Gerrit)

unread,
Aug 26, 2025, 12:41:24 PMAug 26
to Etienne Pierre-Doray, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Etienne Pierre-Doray

Joe Mason voted and added 3 comments

Votes added by Joe Mason

Code-Review+1

3 comments

File content/browser/tracing/tracing_end_to_end_browsertest.cc
Line 482, Patchset 4 (Latest): tracing::TrackNameRecorder::SetRecordHostAppPackageName(true);
Joe Mason . unresolved

Nit: please use a scoper (eg. absl::Cleanup) to reset to the initial value at the end of the test. (Probably need to add a static getter to TrackNameRecorder.)

File services/tracing/public/cpp/perfetto/track_name_recorder.h
Line 88, Patchset 4 (Latest): static bool record_host_app_package_name_;
Joe Mason . resolved

Making this static means that it won't get reset to `false` after each test.

Although I guess that's not a regression since TrackNameRecorder wasn't reset between tests either. Nevermind.

File services/tracing/public/cpp/perfetto/track_name_recorder.cc
Line 168, Patchset 4 (Latest): DCHECK(perfetto::Tracing::IsInitialized());
Joe Mason . unresolved

Nit: current guidance is to use CHECK here since this isn't in performance-critical code.

Open in Gerrit

Related details

Attention is currently required from:
  • Etienne Pierre-Doray
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
    Gerrit-Change-Number: 6881588
    Gerrit-PatchSet: 4
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Comment-Date: Tue, 26 Aug 2025 16:41:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Etienne Pierre-Doray (Gerrit)

    unread,
    Aug 26, 2025, 4:16:15 PMAug 26
    to AyeAye, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

    Etienne Pierre-Doray voted and added 2 comments

    Votes added by Etienne Pierre-Doray

    Commit-Queue+1

    2 comments

    File content/browser/tracing/tracing_end_to_end_browsertest.cc
    Line 482, Patchset 4: tracing::TrackNameRecorder::SetRecordHostAppPackageName(true);
    Joe Mason . resolved

    Nit: please use a scoper (eg. absl::Cleanup) to reset to the initial value at the end of the test. (Probably need to add a static getter to TrackNameRecorder.)

    Etienne Pierre-Doray

    I don't think we need to worry about scoping things in browser tests (for example most of tracing machinery involved here isn't well isolated, unlike TracingEnvironment in unittests)

    File services/tracing/public/cpp/perfetto/track_name_recorder.cc
    Line 168, Patchset 4: DCHECK(perfetto::Tracing::IsInitialized());
    Joe Mason . resolved

    Nit: current guidance is to use CHECK here since this isn't in performance-critical code.

    Etienne Pierre-Doray

    Done

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
    Gerrit-Change-Number: 6881588
    Gerrit-PatchSet: 5
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Comment-Date: Tue, 26 Aug 2025 20:16:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Joe Mason <joenot...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Etienne Pierre-Doray (Gerrit)

    unread,
    Aug 26, 2025, 4:16:45 PMAug 26
    to Nate Fischer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Nate Fischer

    Etienne Pierre-Doray added 1 comment

    Patchset-level comments
    File-level comment, Patchset 5 (Latest):
    Etienne Pierre-Doray . resolved

    +ntfschr@ for android_webview/lib

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Nate Fischer
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
    Gerrit-Change-Number: 6881588
    Gerrit-PatchSet: 5
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Reviewer: Nate Fischer <ntf...@chromium.org>
    Gerrit-Attention: Nate Fischer <ntf...@chromium.org>
    Gerrit-Comment-Date: Tue, 26 Aug 2025 20:16:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Nate Fischer (Gerrit)

    unread,
    Aug 26, 2025, 5:41:03 PMAug 26
    to Etienne Pierre-Doray, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Etienne Pierre-Doray

    Nate Fischer voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Etienne Pierre-Doray
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
    Gerrit-Change-Number: 6881588
    Gerrit-PatchSet: 5
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Reviewer: Nate Fischer <ntf...@chromium.org>
    Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Comment-Date: Tue, 26 Aug 2025 21:40:50 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Etienne Pierre-Doray (Gerrit)

    unread,
    Aug 26, 2025, 6:02:41 PMAug 26
    to Nate Fischer, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

    Etienne Pierre-Doray voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
    Gerrit-Change-Number: 6881588
    Gerrit-PatchSet: 5
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Reviewer: Nate Fischer <ntf...@chromium.org>
    Gerrit-Comment-Date: Tue, 26 Aug 2025 22:02:34 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Aug 26, 2025, 6:06:14 PMAug 26
    to Etienne Pierre-Doray, Nate Fischer, AyeAye, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    [tracing] Remove TrackRegistry::InitializeInstance in prod

    This CL removes TrackRegistry::InitializeInstance (which is meant
    to be internal to perfetto) in
    InitTracingPostFeatureList; the comment in stale,
    and a few changes in TrackNameRecorder are enough to
    work around.
    Change-Id: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
    Commit-Queue: Etienne Pierre-Doray <etie...@chromium.org>
    Reviewed-by: Joe Mason <joenot...@google.com>
    Reviewed-by: Nate Fischer <ntf...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1506794}
    Files:
    • M android_webview/lib/aw_main_delegate.cc
    • M content/browser/tracing/tracing_end_to_end_browsertest.cc
    • M services/tracing/public/cpp/perfetto/track_name_recorder.cc
    • M services/tracing/public/cpp/perfetto/track_name_recorder.h
    • M services/tracing/public/cpp/trace_startup.cc
    Change size: S
    Delta: 5 files changed, 14 insertions(+), 28 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Joe Mason, +1 by Nate Fischer
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
    Gerrit-Change-Number: 6881588
    Gerrit-PatchSet: 6
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Reviewer: Nate Fischer <ntf...@chromium.org>
    open
    diffy
    satisfied_requirement

    Sarah Verduzco (Gerrit)

    unread,
    Aug 26, 2025, 6:07:26 PMAug 26
    to Etienne Pierre-Doray, Chromium LUCI CQ, Nate Fischer, AyeAye, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org

    Sarah Verduzco added 1 comment

    Patchset-level comments
    File-level comment, Patchset 6 (Latest):
    Sarah Verduzco . resolved

    Remove me

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    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: Ib67c3fdc2432eabbdcf9bd5fe7cd1e4c560653ac
    Gerrit-Change-Number: 6881588
    Gerrit-PatchSet: 6
    Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
    Gerrit-Reviewer: Joe Mason <joenot...@google.com>
    Gerrit-Reviewer: Nate Fischer <ntf...@chromium.org>
    Gerrit-CC: Sarah Verduzco <sarahve...@gmail.com>
    Gerrit-Comment-Date: Tue, 26 Aug 2025 22:07:12 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages