Init perfetto really early in WebView [chromium/src : main]

6 views
Skip to first unread message

Peter Pakkenberg (Gerrit)

unread,
Aug 27, 2025, 12:57:50 PM (13 days ago) Aug 27
to Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Abhijith Nair

Peter Pakkenberg added 1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Peter Pakkenberg . resolved

Hi Abhijith, could you take a look at this before I send it to others for review?

Open in Gerrit

Related details

Attention is currently required from:
  • Abhijith Nair
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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
Gerrit-Change-Number: 6853978
Gerrit-PatchSet: 4
Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
Gerrit-Comment-Date: Wed, 27 Aug 2025 16:57:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Abhijith Nair (Gerrit)

unread,
Aug 27, 2025, 1:36:21 PM (13 days ago) Aug 27
to Peter Pakkenberg, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
Attention needed from Peter Pakkenberg

Abhijith Nair added 2 comments

File services/tracing/public/cpp/trace_startup.h
Line 50, Patchset 4 (Latest): bool enable_system_consumer,
Abhijith Nair . unresolved

This looks different from `enable_system_tracing` in the CC file. Looking at the existing code, they seem to have different semantics.

Can you please clarify which we mean here?

File services/tracing/public/cpp/trace_startup.cc
Line 107, Patchset 4 (Latest): base::RepeatingCallback<bool()> should_allow_system_tracing) {
Abhijith Nair . unresolved

What's the difference between this and `enable_system_tracing`? Are they not the same thing?

Open in Gerrit

Related details

Attention is currently required from:
  • Peter Pakkenberg
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not 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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
    Gerrit-Change-Number: 6853978
    Gerrit-PatchSet: 4
    Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
    Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
    Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
    Gerrit-Attention: Peter Pakkenberg <pb...@chromium.org>
    Gerrit-Comment-Date: Wed, 27 Aug 2025 17:36:07 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Peter Pakkenberg (Gerrit)

    unread,
    Aug 28, 2025, 5:55:50 AM (12 days ago) Aug 28
    to Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Abhijith Nair

    Peter Pakkenberg added 2 comments

    File services/tracing/public/cpp/trace_startup.h
    Line 50, Patchset 4: bool enable_system_consumer,
    Abhijith Nair . resolved

    This looks different from `enable_system_tracing` in the CC file. Looking at the existing code, they seem to have different semantics.

    Can you please clarify which we mean here?

    Peter Pakkenberg

    Yeah - I realised I didn't have to pipe this extra parameter through anyway, so I removed it, and called `SetSystemTracingEnabled` directly in `aw_browser_process.cc`

    File services/tracing/public/cpp/trace_startup.cc
    Line 107, Patchset 4: base::RepeatingCallback<bool()> should_allow_system_tracing) {
    Abhijith Nair . resolved

    What's the difference between this and `enable_system_tracing`? Are they not the same thing?

    Peter Pakkenberg

    Not really, no - one overrides a feature flag. The `should_allow_system_tracing` callback is effectively always `return false;` in WebView.

    My aim here was to ensure that the feature flag could still be used.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Abhijith Nair
    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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
    Gerrit-Change-Number: 6853978
    Gerrit-PatchSet: 6
    Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
    Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
    Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
    Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
    Gerrit-Comment-Date: Thu, 28 Aug 2025 09:55:35 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Abhijith Nair <abhiji...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Abhijith Nair (Gerrit)

    unread,
    Aug 28, 2025, 8:53:15 AM (12 days ago) Aug 28
    to Peter Pakkenberg, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
    Attention needed from Peter Pakkenberg

    Abhijith Nair added 3 comments

    File services/tracing/public/cpp/trace_startup.cc
    Line 48, Patchset 7 (Latest): return g_tracing_initialized_after_featurelist;
    Abhijith Nair . unresolved

    `after_featurelist` suffix no longer makes sense.
    Maybe get rid of the suffix?

    Line 67, Patchset 7 (Latest): traced_process.InitPostFeatureList(enable_consumer);
    Abhijith Nair . unresolved
    This will crash in Windows, wouldn't it?
    https://crsrc.org/c/services/tracing/public/cpp/perfetto/perfetto_traced_process.cc;l=361;drc=50ade2d8d071e10bc5d53234bb2c0b311c515940

    I am unsure if there are other places called from `InitTracingInternal` that depends on the feature list.

    Maybe we should only enable `InitTracingPreFeatureList` to be called on Android?

    We should also prevent a situation where somebody later adds some other feature check in `PerfettoTracedProcess::InitPostFeatureList` and breaks us.

    File services/tracing/public/cpp/tracing_features.cc
    Line 74, Patchset 7 (Latest):bool g_enable_system_tracing = false;
    Abhijith Nair . unresolved

    nit: I think it would be useful to add a comment here to say that whether system tracing runs is not completely dependent on the state of this flag.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Peter Pakkenberg
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not 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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
      Gerrit-Change-Number: 6853978
      Gerrit-PatchSet: 7
      Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
      Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
      Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
      Gerrit-Attention: Peter Pakkenberg <pb...@chromium.org>
      Gerrit-Comment-Date: Thu, 28 Aug 2025 12:52:55 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Peter Pakkenberg (Gerrit)

      unread,
      Sep 1, 2025, 6:38:31 AM (8 days ago) Sep 1
      to Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Abhijith Nair

      Peter Pakkenberg added 3 comments

      File services/tracing/public/cpp/trace_startup.cc
      Line 48, Patchset 7: return g_tracing_initialized_after_featurelist;
      Abhijith Nair . resolved

      `after_featurelist` suffix no longer makes sense.
      Maybe get rid of the suffix?

      Peter Pakkenberg

      Acknowledged

      Line 67, Patchset 7: traced_process.InitPostFeatureList(enable_consumer);
      Abhijith Nair . resolved
      This will crash in Windows, wouldn't it?
      https://crsrc.org/c/services/tracing/public/cpp/perfetto/perfetto_traced_process.cc;l=361;drc=50ade2d8d071e10bc5d53234bb2c0b311c515940

      I am unsure if there are other places called from `InitTracingInternal` that depends on the feature list.

      Maybe we should only enable `InitTracingPreFeatureList` to be called on Android?

      We should also prevent a situation where somebody later adds some other feature check in `PerfettoTracedProcess::InitPostFeatureList` and breaks us.

      Peter Pakkenberg

      Good suggestions.

      I have added a test for `InitTracingPreFeatureList` that ensures that it doesn't crash if the featurelist hasn't been initialized. That's probably the most we can do here.

      I have also gone and removed the `InitPostFeatureList` from `PerfettoTracedProcess` since it was just a direct call through to `SetupClientLibrary`.

      File services/tracing/public/cpp/tracing_features.cc
      Line 74, Patchset 7:bool g_enable_system_tracing = false;
      Abhijith Nair . resolved

      nit: I think it would be useful to add a comment here to say that whether system tracing runs is not completely dependent on the state of this flag.

      Peter Pakkenberg

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Abhijith Nair
      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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
      Gerrit-Change-Number: 6853978
      Gerrit-PatchSet: 8
      Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
      Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
      Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
      Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
      Gerrit-Comment-Date: Mon, 01 Sep 2025 10:38:13 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Abhijith Nair <abhiji...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Abhijith Nair (Gerrit)

      unread,
      Sep 1, 2025, 7:45:16 AM (8 days ago) Sep 1
      to Peter Pakkenberg, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
      Attention needed from Peter Pakkenberg

      Abhijith Nair voted Code-Review+1

      Code-Review+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Peter Pakkenberg
      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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
        Gerrit-Change-Number: 6853978
        Gerrit-PatchSet: 9
        Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
        Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
        Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
        Gerrit-Attention: Peter Pakkenberg <pb...@chromium.org>
        Gerrit-Comment-Date: Mon, 01 Sep 2025 11:45:00 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Etienne Pierre-Doray (Gerrit)

        unread,
        Sep 3, 2025, 2:18:08 PM (6 days ago) Sep 3
        to Peter Pakkenberg, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
        Attention needed from Peter Pakkenberg

        Etienne Pierre-Doray added 5 comments

        File android_webview/browser/aw_browser_process.cc
        Line 358, Patchset 9 (Latest): bool enable_system_consumer) {
        Etienne Pierre-Doray . unresolved

        Nit: enable_system_backend
        Otherwise this gets confusing with `should_allow_system_tracing` argument which refers to consumer, whereas this is for backend.

        Line 359, Patchset 9 (Latest): tracing::SetSystemTracingEnabled(enable_system_consumer);
        tracing::InitTracingPreFeatureList(/*enable_consumer=*/true,
        /*will_trace_thread_restart=*/false);
        Etienne Pierre-Doray . unresolved

        Could we plumb `enable_system_backend` (as override) directly through InitTracing as optional param:

        ```
        if (ShouldSetupSystemTracing(enable_system_backend_override)) {
        ```

        File android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
        Line 528, Patchset 9 (Latest): if (WebViewCachedFlags.get()
        .isCachedFeatureEnabled(AwFeatures.WEBVIEW_EARLY_PERFETTO_INIT)) {
        Etienne Pierre-Doray . unresolved

        I'm not sure we need to put this behind a flag.
        I don't think there's a lot of value in running an experiment on this: success metric is simply data quality + we might want to monitor crash, although this can be done with the normal rollout.

        If this is only to have a kill switch, I think the CL is low risk and easy enough to revert.

        File services/tracing/public/cpp/trace_startup.cc
        Line 54, Patchset 9 (Latest): base::RepeatingCallback<bool()> should_allow_system_tracing) {
        Etienne Pierre-Doray . unresolved

        Could you rename this to `allow_system_tracing_consumer` here and in .h, that would remove ambiguity with enabling the system backend (see comment in android_webview/browser/aw_browser_process.cc)

        Line 104, Patchset 9 (Latest):void InitTracingPreFeatureList(
        Etienne Pierre-Doray . unresolved

        Nit: Maybe we simply expose `InitTracingInternal` as `InitTracing`,
        and have `InitTracingPostFeatureList` call that.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Peter Pakkenberg
        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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
          Gerrit-Change-Number: 6853978
          Gerrit-PatchSet: 9
          Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
          Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
          Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
          Gerrit-CC: Etienne Pierre-Doray <etie...@chromium.org>
          Gerrit-Attention: Peter Pakkenberg <pb...@chromium.org>
          Gerrit-Comment-Date: Wed, 03 Sep 2025 18:18:02 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Peter Pakkenberg (Gerrit)

          unread,
          Sep 4, 2025, 8:24:03 AM (5 days ago) Sep 4
          to Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
          Attention needed from Abhijith Nair and Etienne Pierre-Doray

          Peter Pakkenberg voted and added 5 comments

          Votes added by Peter Pakkenberg

          Commit-Queue+1

          5 comments

          File android_webview/browser/aw_browser_process.cc
          Line 358, Patchset 9: bool enable_system_consumer) {
          Etienne Pierre-Doray . resolved

          Nit: enable_system_backend
          Otherwise this gets confusing with `should_allow_system_tracing` argument which refers to consumer, whereas this is for backend.

          Peter Pakkenberg

          Done

          Line 359, Patchset 9: tracing::SetSystemTracingEnabled(enable_system_consumer);
          tracing::InitTracingPreFeatureList(/*enable_consumer=*/true,
          /*will_trace_thread_restart=*/false);
          Etienne Pierre-Doray . resolved

          Could we plumb `enable_system_backend` (as override) directly through InitTracing as optional param:

          ```
          if (ShouldSetupSystemTracing(enable_system_backend_override)) {
          ```

          Peter Pakkenberg

          I pulled the feature flag check all the way out and put it in `InitTracingPostFeatureList` instead - that way, there is one less feature checks deep in the init code.

          File android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
          Line 528, Patchset 9: if (WebViewCachedFlags.get()
          .isCachedFeatureEnabled(AwFeatures.WEBVIEW_EARLY_PERFETTO_INIT)) {
          Etienne Pierre-Doray . resolved

          I'm not sure we need to put this behind a flag.
          I don't think there's a lot of value in running an experiment on this: success metric is simply data quality + we might want to monitor crash, although this can be done with the normal rollout.

          If this is only to have a kill switch, I think the CL is low risk and easy enough to revert.

          Peter Pakkenberg

          We do want to measure the impact this change in point of initialization has on WebView startup, hence the feature flag.

          File services/tracing/public/cpp/trace_startup.cc
          Line 54, Patchset 9: base::RepeatingCallback<bool()> should_allow_system_tracing) {
          Etienne Pierre-Doray . resolved

          Could you rename this to `allow_system_tracing_consumer` here and in .h, that would remove ambiguity with enabling the system backend (see comment in android_webview/browser/aw_browser_process.cc)

          Peter Pakkenberg

          Done

          Line 104, Patchset 9:void InitTracingPreFeatureList(
          Etienne Pierre-Doray . resolved

          Nit: Maybe we simply expose `InitTracingInternal` as `InitTracing`,
          and have `InitTracingPostFeatureList` call that.

          Peter Pakkenberg

          Done

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Abhijith Nair
          • Etienne Pierre-Doray
          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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
            Gerrit-Change-Number: 6853978
            Gerrit-PatchSet: 11
            Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
            Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
            Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
            Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
            Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
            Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
            Gerrit-Comment-Date: Thu, 04 Sep 2025 12:23:50 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Etienne Pierre-Doray (Gerrit)

            unread,
            Sep 5, 2025, 11:30:23 AM (4 days ago) Sep 5
            to Peter Pakkenberg, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
            Attention needed from Abhijith Nair and Peter Pakkenberg

            Etienne Pierre-Doray added 3 comments

            File android_webview/browser/aw_browser_process.cc
            Line 359, Patchset 9: tracing::SetSystemTracingEnabled(enable_system_consumer);
            tracing::InitTracingPreFeatureList(/*enable_consumer=*/true,
            /*will_trace_thread_restart=*/false);
            Etienne Pierre-Doray . resolved

            Could we plumb `enable_system_backend` (as override) directly through InitTracing as optional param:

            ```
            if (ShouldSetupSystemTracing(enable_system_backend_override)) {
            ```

            Peter Pakkenberg

            I pulled the feature flag check all the way out and put it in `InitTracingPostFeatureList` instead - that way, there is one less feature checks deep in the init code.

            Etienne Pierre-Doray

            Cool even better!

            File android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
            Line 528, Patchset 9: if (WebViewCachedFlags.get()
            .isCachedFeatureEnabled(AwFeatures.WEBVIEW_EARLY_PERFETTO_INIT)) {
            Etienne Pierre-Doray . resolved

            I'm not sure we need to put this behind a flag.
            I don't think there's a lot of value in running an experiment on this: success metric is simply data quality + we might want to monitor crash, although this can be done with the normal rollout.

            If this is only to have a kill switch, I think the CL is low risk and easy enough to revert.

            Peter Pakkenberg

            We do want to measure the impact this change in point of initialization has on WebView startup, hence the feature flag.

            Etienne Pierre-Doray

            Ack.

            File services/tracing/public/cpp/trace_startup.cc
            Line 56, Patchset 11 (Latest): if (g_tracing_initialized) {
            return;
            }
            Etienne Pierre-Doray . unresolved

            I tried extra hard to prevent/disallow multiple calls, in order to be able to pinpoint the different initialization paths.
            I think the new webview call collides with this one: https://source.chromium.org/chromium/chromium/src/+/main:content/app/content_main_runner_impl.cc;l=1210-1212;drc=e3ad182cacc3a02eb6a13091a867815fd17a129c;bpv=1;bpt=1

            Do you think it'd be possible to do one of:

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Abhijith Nair
            • Peter Pakkenberg
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement is not 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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
              Gerrit-Change-Number: 6853978
              Gerrit-PatchSet: 11
              Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
              Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
              Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
              Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
              Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
              Gerrit-Attention: Peter Pakkenberg <pb...@chromium.org>
              Gerrit-Comment-Date: Fri, 05 Sep 2025 15:30:16 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
              Comment-In-Reply-To: Peter Pakkenberg <pb...@chromium.org>
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Peter Pakkenberg (Gerrit)

              unread,
              Sep 8, 2025, 8:35:25 AM (yesterday) Sep 8
              to Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
              Attention needed from Abhijith Nair and Etienne Pierre-Doray

              Peter Pakkenberg added 1 comment

              File services/tracing/public/cpp/trace_startup.cc
              Line 56, Patchset 11: if (g_tracing_initialized) {
              return;
              }
              Etienne Pierre-Doray . unresolved

              I tried extra hard to prevent/disallow multiple calls, in order to be able to pinpoint the different initialization paths.
              I think the new webview call collides with this one: https://source.chromium.org/chromium/chromium/src/+/main:content/app/content_main_runner_impl.cc;l=1210-1212;drc=e3ad182cacc3a02eb6a13091a867815fd17a129c;bpv=1;bpt=1

              Do you think it'd be possible to do one of:

              Peter Pakkenberg

              We sadly don't have any `BUILDFLAG(IS_WEBVIEW)` so this check has to be done dynamically at runtime.

              I've reinstated the `DCHECK(!g_tracing_initialized)` and added a check in `ContentMainRunnerImpl` to determine if we should call `InitTracingPostFeatureList` there, since an explicit check seems to be in line with your suggestions.

              I also considered simply wrapping the call in `ContentMainRunnerImpl` like this
              ```
              if (!tracing::IsTracingInitialized()) {
              tracing::InitTracingPostFeatureList(...);
              }
              ```

              Since you hadn't suggested this, it seemed like it wouldn't be in the spirit of what you are trying to achieve, but if you think that approach would also be OK, then I will rewrite to do that instead, since it will be much less plumbing than what I have currently put in.

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Abhijith Nair
              • Etienne Pierre-Doray
              Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement is not satisfiedCode-Owners
              • requirement is not 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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
              Gerrit-Change-Number: 6853978
              Gerrit-PatchSet: 13
              Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
              Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
              Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
              Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
              Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
              Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
              Gerrit-Comment-Date: Mon, 08 Sep 2025 12:35:11 +0000
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Etienne Pierre-Doray (Gerrit)

              unread,
              Sep 8, 2025, 8:44:32 AM (yesterday) Sep 8
              to Peter Pakkenberg, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
              Attention needed from Abhijith Nair and Peter Pakkenberg

              Etienne Pierre-Doray voted and added 4 comments

              Votes added by Etienne Pierre-Doray

              Code-Review+1

              4 comments

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

              LGTM, thanks!

              File android_webview/browser/aw_browser_process.cc
              Line 363, Patchset 13 (Latest): if (!tracing::IsTracingInitialized()) {
              Etienne Pierre-Doray . unresolved

              Can we do without this check? I figured AwBrowserProcess_InitPerfetto would be the earliest call to initialize tracing.

              File android_webview/lib/aw_main_delegate.cc
              Line 409, Patchset 13 (Latest): return std::visit(
              overloaded{[](const ContentMainDelegate::InvokedInBrowserProcess& arg) {
              return !AwBrowserProcess::DidEarlyPerfettoInitialization();
              },
              [](const ContentMainDelegate::InvokedInChildProcess& arg) {
              // We only initialize Perfetto manually in the browser
              // process.
              return true;
              }},
              invoked_in);
              Etienne Pierre-Doray . unresolved

              Nit: might be simpler to use conditional

              ```
              const bool is_browser_process =
              std::holds_alternative<InvokedInBrowserProcess>(invoked_in);
              if (!is_browser_process) {
              return true;
              }
              return !AwBrowserProcess::DidEarlyPerfettoInitialization();
              ```
              File services/tracing/public/cpp/trace_startup.cc
              Line 56, Patchset 11: if (g_tracing_initialized) {
              return;
              }
              Etienne Pierre-Doray . resolved

              I tried extra hard to prevent/disallow multiple calls, in order to be able to pinpoint the different initialization paths.
              I think the new webview call collides with this one: https://source.chromium.org/chromium/chromium/src/+/main:content/app/content_main_runner_impl.cc;l=1210-1212;drc=e3ad182cacc3a02eb6a13091a867815fd17a129c;bpv=1;bpt=1

              Do you think it'd be possible to do one of:

              Peter Pakkenberg

              We sadly don't have any `BUILDFLAG(IS_WEBVIEW)` so this check has to be done dynamically at runtime.

              I've reinstated the `DCHECK(!g_tracing_initialized)` and added a check in `ContentMainRunnerImpl` to determine if we should call `InitTracingPostFeatureList` there, since an explicit check seems to be in line with your suggestions.

              I also considered simply wrapping the call in `ContentMainRunnerImpl` like this
              ```
              if (!tracing::IsTracingInitialized()) {
              tracing::InitTracingPostFeatureList(...);
              }
              ```

              Since you hadn't suggested this, it seemed like it wouldn't be in the spirit of what you are trying to achieve, but if you think that approach would also be OK, then I will rewrite to do that instead, since it will be much less plumbing than what I have currently put in.

              Etienne Pierre-Doray

              AwMainDelegate::ShouldInitializePerfetto SG!

              Open in Gerrit

              Related details

              Attention is currently required from:
              • Abhijith Nair
              • Peter Pakkenberg
              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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                Gerrit-Change-Number: 6853978
                Gerrit-PatchSet: 13
                Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
                Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
                Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
                Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
                Gerrit-Attention: Peter Pakkenberg <pb...@chromium.org>
                Gerrit-Comment-Date: Mon, 08 Sep 2025 12:44:26 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: Yes
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Peter Pakkenberg (Gerrit)

                unread,
                Sep 8, 2025, 8:57:08 AM (yesterday) Sep 8
                to Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
                Attention needed from Abhijith Nair

                Peter Pakkenberg added 2 comments

                File android_webview/browser/aw_browser_process.cc
                Line 363, Patchset 13: if (!tracing::IsTracingInitialized()) {
                Etienne Pierre-Doray . resolved

                Can we do without this check? I figured AwBrowserProcess_InitPerfetto would be the earliest call to initialize tracing.

                Peter Pakkenberg

                Yes, and now that you point it out, it would be better to DCHECK and crash if it turns out not to be.

                File android_webview/lib/aw_main_delegate.cc
                Line 409, Patchset 13: return std::visit(

                overloaded{[](const ContentMainDelegate::InvokedInBrowserProcess& arg) {
                return !AwBrowserProcess::DidEarlyPerfettoInitialization();
                },
                [](const ContentMainDelegate::InvokedInChildProcess& arg) {
                // We only initialize Perfetto manually in the browser
                // process.
                return true;
                }},
                invoked_in);
                Etienne Pierre-Doray . resolved

                Nit: might be simpler to use conditional

                ```
                const bool is_browser_process =
                std::holds_alternative<InvokedInBrowserProcess>(invoked_in);
                if (!is_browser_process) {
                return true;
                }
                return !AwBrowserProcess::DidEarlyPerfettoInitialization();
                ```
                Peter Pakkenberg

                Yep, that is easier.
                My first time having to deal with `std::variant` so I was a bit lost on what the usual approach was.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Abhijith Nair
                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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                Gerrit-Change-Number: 6853978
                Gerrit-PatchSet: 14
                Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
                Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
                Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
                Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
                Gerrit-Comment-Date: Mon, 08 Sep 2025 12:56:53 +0000
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Peter Pakkenberg (Gerrit)

                unread,
                Sep 8, 2025, 9:01:39 AM (yesterday) Sep 8
                to Peter Conn, Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
                Attention needed from Abhijith Nair and Peter Conn

                Peter Pakkenberg added 1 comment

                Patchset-level comments
                File-level comment, Patchset 14 (Latest):
                Peter Pakkenberg . resolved

                Hi Peter, can you do an OWNERS review of this CL for //android_webview?

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Abhijith Nair
                • Peter Conn
                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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                Gerrit-Change-Number: 6853978
                Gerrit-PatchSet: 14
                Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
                Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
                Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                Gerrit-Reviewer: Peter Conn <pec...@chromium.org>
                Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
                Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
                Gerrit-Attention: Peter Conn <pec...@chromium.org>
                Gerrit-Comment-Date: Mon, 08 Sep 2025 13:01:24 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Peter Pakkenberg (Gerrit)

                unread,
                Sep 8, 2025, 9:02:49 AM (yesterday) Sep 8
                to Dave Tapuska, Peter Conn, Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
                Attention needed from Abhijith Nair, Dave Tapuska and Peter Conn

                Peter Pakkenberg added 1 comment

                Patchset-level comments
                Peter Pakkenberg . resolved

                Hi Dave, could you do a OWNERS review for //content on this CL?

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Abhijith Nair
                • Dave Tapuska
                • Peter Conn
                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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                Gerrit-Change-Number: 6853978
                Gerrit-PatchSet: 14
                Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
                Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
                Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
                Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                Gerrit-Reviewer: Peter Conn <pec...@chromium.org>
                Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
                Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
                Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
                Gerrit-Attention: Peter Conn <pec...@chromium.org>
                Gerrit-Comment-Date: Mon, 08 Sep 2025 13:02:32 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy

                Dave Tapuska (Gerrit)

                unread,
                Sep 8, 2025, 11:02:50 AM (yesterday) Sep 8
                to Peter Pakkenberg, Peter Conn, Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
                Attention needed from Abhijith Nair, Peter Conn and Peter Pakkenberg

                Dave Tapuska voted and added 1 comment

                Votes added by Dave Tapuska

                Code-Review+1

                1 comment

                File content/app/content_main_runner_impl.cc
                Line 1211, Patchset 14 (Latest): // WebView may initialize perfetto early, so check if we should do it here.
                Dave Tapuska . unresolved

                Can we change this to:

                WebView may have already initialized perfetto, so check if we should do it here.

                Open in Gerrit

                Related details

                Attention is currently required from:
                • Abhijith Nair
                • Peter Conn
                • Peter Pakkenberg
                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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                  Gerrit-Change-Number: 6853978
                  Gerrit-PatchSet: 14
                  Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
                  Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
                  Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                  Gerrit-Reviewer: Peter Conn <pec...@chromium.org>
                  Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
                  Gerrit-Attention: Peter Conn <pec...@chromium.org>
                  Gerrit-Attention: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Comment-Date: Mon, 08 Sep 2025 15:01:41 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: Yes
                  satisfied_requirement
                  unsatisfied_requirement
                  open
                  diffy

                  Peter Pakkenberg (Gerrit)

                  unread,
                  Sep 8, 2025, 11:38:29 AM (yesterday) Sep 8
                  to Dave Tapuska, Peter Conn, Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
                  Attention needed from Abhijith Nair and Peter Conn

                  Peter Pakkenberg voted and added 1 comment

                  Votes added by Peter Pakkenberg

                  Commit-Queue+1

                  1 comment

                  File content/app/content_main_runner_impl.cc
                  Line 1211, Patchset 14: // WebView may initialize perfetto early, so check if we should do it here.
                  Dave Tapuska . resolved

                  Can we change this to:

                  WebView may have already initialized perfetto, so check if we should do it here.

                  Peter Pakkenberg

                  Done

                  Open in Gerrit

                  Related details

                  Attention is currently required from:
                  • Abhijith Nair
                  • Peter Conn
                  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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                  Gerrit-Change-Number: 6853978
                  Gerrit-PatchSet: 14
                  Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
                  Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
                  Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                  Gerrit-Reviewer: Peter Conn <pec...@chromium.org>
                  Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
                  Gerrit-Attention: Peter Conn <pec...@chromium.org>
                  Gerrit-Comment-Date: Mon, 08 Sep 2025 15:38:11 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: Yes
                  Comment-In-Reply-To: Dave Tapuska <dtap...@chromium.org>
                  satisfied_requirement
                  unsatisfied_requirement
                  open
                  diffy

                  Peter Conn (Gerrit)

                  unread,
                  Sep 8, 2025, 12:24:55 PM (24 hours ago) Sep 8
                  to Peter Pakkenberg, Dave Tapuska, Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
                  Attention needed from Abhijith Nair and Peter Pakkenberg

                  Peter Conn voted and added 2 comments

                  Votes added by Peter Conn

                  Code-Review+1

                  2 comments

                  Patchset-level comments
                  File-level comment, Patchset 15 (Latest):
                  Peter Conn . resolved

                  LGTM % nit

                  File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
                  Line 707, Patchset 15 (Latest): public static void initPerfetto(boolean enableSystemConsumer) {
                  Peter Conn . unresolved

                  What is this parameter? (Can you add javadoc?)

                  Open in Gerrit

                  Related details

                  Attention is currently required from:
                  • Abhijith Nair
                  • Peter Pakkenberg
                  Submit Requirements:
                  • requirement satisfiedCode-Coverage
                  • requirement 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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                  Gerrit-Change-Number: 6853978
                  Gerrit-PatchSet: 15
                  Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
                  Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
                  Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                  Gerrit-Reviewer: Peter Conn <pec...@chromium.org>
                  Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
                  Gerrit-Attention: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Comment-Date: Mon, 08 Sep 2025 16:24:29 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: Yes
                  satisfied_requirement
                  unsatisfied_requirement
                  open
                  diffy

                  Peter Pakkenberg (Gerrit)

                  unread,
                  4:42 AM (8 hours ago) 4:42 AM
                  to Peter Conn, Dave Tapuska, Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
                  Attention needed from Abhijith Nair

                  Peter Pakkenberg added 1 comment

                  File android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
                  Line 707, Patchset 15 (Latest): public static void initPerfetto(boolean enableSystemConsumer) {
                  Peter Conn . resolved

                  What is this parameter? (Can you add javadoc?)

                  Peter Pakkenberg

                  Done

                  Open in Gerrit

                  Related details

                  Attention is currently required from:
                  • Abhijith Nair
                  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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                  Gerrit-Change-Number: 6853978
                  Gerrit-PatchSet: 15
                  Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
                  Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
                  Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                  Gerrit-Reviewer: Peter Conn <pec...@chromium.org>
                  Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Attention: Abhijith Nair <abhiji...@chromium.org>
                  Gerrit-Comment-Date: Tue, 09 Sep 2025 08:42:20 +0000
                  Gerrit-HasComments: Yes
                  Gerrit-Has-Labels: No
                  Comment-In-Reply-To: Peter Conn <pec...@chromium.org>
                  satisfied_requirement
                  open
                  diffy

                  Peter Pakkenberg (Gerrit)

                  unread,
                  4:42 AM (8 hours ago) 4:42 AM
                  to Peter Conn, Dave Tapuska, Etienne Pierre-Doray, Abhijith Nair, Chromium LUCI CQ, chromium...@chromium.org, android-web...@chromium.org, spang...@chromium.org, tracing...@chromium.org, wfh+...@chromium.org
                  Attention needed from Abhijith Nair

                  Peter Pakkenberg voted Commit-Queue+2

                  Commit-Queue+2
                  Gerrit-Comment-Date: Tue, 09 Sep 2025 08:42:28 +0000
                  Gerrit-HasComments: No
                  Gerrit-Has-Labels: Yes
                  satisfied_requirement
                  open
                  diffy

                  Chromium LUCI CQ (Gerrit)

                  unread,
                  5:37 AM (7 hours ago) 5:37 AM
                  to Peter Pakkenberg, Peter Conn, Dave Tapuska, Etienne Pierre-Doray, Abhijith Nair, 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:
                  Init perfetto really early in WebView

                  This CL adds a new cached feature flag that initializes Perfetto as soon
                  as the native library has loaded.

                  It also moves the check for `ShouldSetupSystemTracing()` further up the
                  call stack to avoid feature checks deep in the init code.
                  Enabled-by-default-reason: False positive.
                  Bug: 428690843
                  Change-Id: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                  Reviewed-by: Dave Tapuska <dtap...@chromium.org>
                  Reviewed-by: Etienne Pierre-Doray <etie...@chromium.org>
                  Reviewed-by: Peter Conn <pec...@chromium.org>
                  Commit-Queue: Peter Pakkenberg <pb...@chromium.org>
                  Cr-Commit-Position: refs/heads/main@{#1512939}
                  Files:
                  • M android_webview/browser/aw_browser_process.cc
                  • M android_webview/browser/aw_browser_process.h
                  • M android_webview/common/DEPS
                  • M android_webview/common/aw_feature_map.cc
                  • M android_webview/common/aw_features.cc
                  • M android_webview/common/aw_features.h
                  • M android_webview/glue/BUILD.gn
                  • M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
                  • M android_webview/java/src/org/chromium/android_webview/AwBrowserProcess.java
                  • M android_webview/java/src/org/chromium/android_webview/common/ProductionSupportedFlagList.java
                  • M android_webview/java/src/org/chromium/android_webview/common/WebViewCachedFlags.java
                  • M android_webview/lib/aw_main_delegate.cc
                  • M android_webview/lib/aw_main_delegate.h
                  • M content/app/content_main_runner_impl.cc
                  • M content/public/app/content_main_delegate.cc
                  • M content/public/app/content_main_delegate.h
                  • M services/tracing/public/cpp/perfetto/perfetto_traced_process.cc
                  • M services/tracing/public/cpp/perfetto/perfetto_traced_process.h
                  • M services/tracing/public/cpp/trace_startup.cc
                  • M services/tracing/public/cpp/trace_startup.h
                  • M services/tracing/public/cpp/tracing_features.h
                  Change size: M
                  Delta: 21 files changed, 150 insertions(+), 27 deletions(-)
                  Branch: refs/heads/main
                  Submit Requirements:
                  • requirement satisfiedCode-Review: +1 by Dave Tapuska, +1 by Etienne Pierre-Doray, +1 by Peter Conn
                  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: I7ad2291b2eb8fe3b34c065b4ff6c741c6eef6e1a
                  Gerrit-Change-Number: 6853978
                  Gerrit-PatchSet: 16
                  Gerrit-Owner: Peter Pakkenberg <pb...@chromium.org>
                  Gerrit-Reviewer: Abhijith Nair <abhiji...@chromium.org>
                  Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
                  Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
                  Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
                  Gerrit-Reviewer: Peter Conn <pec...@chromium.org>
                  Gerrit-Reviewer: Peter Pakkenberg <pb...@chromium.org>
                  open
                  diffy
                  satisfied_requirement
                  Reply all
                  Reply to author
                  Forward
                  0 new messages