[blink][tracing] Expose V8 script id to more trace events [chromium/src : main]

0 views
Skip to first unread message

Camillo Bruni (Gerrit)

unread,
Jan 27, 2026, 9:04:23 AMJan 27
to Andrey Kosyakov, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, devtools-re...@chromium.org, dom+...@chromium.org, hiroshig...@chromium.org, kouhei...@chromium.org
Attention needed from Andrey Kosyakov

Camillo Bruni voted and added 1 comment

Votes added by Camillo Bruni

Commit-Queue+1

1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Camillo Bruni . resolved

PTAL

Open in Gerrit

Related details

Attention is currently required from:
  • Andrey Kosyakov
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • 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: Ie0e5c4085477c44b9305e6ee1e64a188ccbab52d
Gerrit-Change-Number: 7520908
Gerrit-PatchSet: 4
Gerrit-Owner: Camillo Bruni <cbr...@chromium.org>
Gerrit-Reviewer: Andrey Kosyakov <ca...@chromium.org>
Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-Attention: Andrey Kosyakov <ca...@chromium.org>
Gerrit-Comment-Date: Tue, 27 Jan 2026 14:04:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Andrey Kosyakov (Gerrit)

unread,
Jan 27, 2026, 7:21:07 PMJan 27
to Camillo Bruni, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, devtools-re...@chromium.org, dom+...@chromium.org, hiroshig...@chromium.org, kouhei...@chromium.org
Attention needed from Camillo Bruni

Andrey Kosyakov added 4 comments

Patchset-level comments
Andrey Kosyakov . resolved

Can we please get some test coverage for this? These are generally covered by tests under inspector-protocol/tracing. There's some prior art here: third_party/blink/web_tests/http/tests/inspector-protocol/tracing/cpu-profiling.js

File third_party/blink/renderer/bindings/core/v8/v8_script_runner.cc
Line 354, Patchset 4 (Latest): inspector_compile_script_event::ScriptId(script),
Andrey Kosyakov . unresolved

nit: pass `script` as is and encapsulate id extraction logic in `Data()`?

Line 467, Patchset 4 (Latest): inspector_compile_script_event::ScriptId(script),
Andrey Kosyakov . unresolved

ditto

File third_party/blink/renderer/core/inspector/inspector_trace_events.h
Line 442, Patchset 4 (Latest): int script_id,
Andrey Kosyakov . unresolved

Not sure I understand why are you adding one here. There's a single call site and it passes `kNoScriptId`. Remove?

Open in Gerrit

Related details

Attention is currently required from:
  • Camillo Bruni
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: Ie0e5c4085477c44b9305e6ee1e64a188ccbab52d
    Gerrit-Change-Number: 7520908
    Gerrit-PatchSet: 4
    Gerrit-Owner: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Reviewer: Andrey Kosyakov <ca...@chromium.org>
    Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
    Gerrit-Comment-Date: Wed, 28 Jan 2026 00:20:58 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Camillo Bruni (Gerrit)

    unread,
    9:23 AM (5 hours ago) 9:23 AM
    to Andrey Kosyakov, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, devtools-re...@chromium.org, dom+...@chromium.org, hiroshig...@chromium.org, kouhei...@chromium.org
    Attention needed from Andrey Kosyakov

    Camillo Bruni added 3 comments

    File third_party/blink/renderer/bindings/core/v8/v8_script_runner.cc
    Line 354, Patchset 4: inspector_compile_script_event::ScriptId(script),
    Andrey Kosyakov . resolved

    nit: pass `script` as is and encapsulate id extraction logic in `Data()`?

    Camillo Bruni

    Done

    Line 467, Patchset 4: inspector_compile_script_event::ScriptId(script),
    Andrey Kosyakov . resolved

    ditto

    Camillo Bruni

    Done

    File third_party/blink/renderer/core/inspector/inspector_trace_events.h
    Line 442, Patchset 4: int script_id,
    Andrey Kosyakov . resolved

    Not sure I understand why are you adding one here. There's a single call site and it passes `kNoScriptId`. Remove?

    Camillo Bruni

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andrey Kosyakov
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • 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: Ie0e5c4085477c44b9305e6ee1e64a188ccbab52d
      Gerrit-Change-Number: 7520908
      Gerrit-PatchSet: 5
      Gerrit-Owner: Camillo Bruni <cbr...@chromium.org>
      Gerrit-Reviewer: Andrey Kosyakov <ca...@chromium.org>
      Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Andrey Kosyakov <ca...@chromium.org>
      Gerrit-Comment-Date: Tue, 05 May 2026 13:22:55 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Andrey Kosyakov <ca...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Camillo Bruni (Gerrit)

      unread,
      11:02 AM (3 hours ago) 11:02 AM
      to Andrey Kosyakov, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, devtools-re...@chromium.org, dom+...@chromium.org, hiroshig...@chromium.org, kouhei...@chromium.org
      Attention needed from Andrey Kosyakov

      Camillo Bruni added 1 comment

      Patchset-level comments
      File-level comment, Patchset 5 (Latest):
      Camillo Bruni . resolved

      PTAL again

      Gerrit-Comment-Date: Tue, 05 May 2026 15:02:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Andrey Kosyakov (Gerrit)

      unread,
      12:49 PM (1 hour ago) 12:49 PM
      to Camillo Bruni, Chromium LUCI CQ, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revie...@chromium.org, blink-...@chromium.org, devtools-re...@chromium.org, dom+...@chromium.org, hiroshig...@chromium.org, kouhei...@chromium.org
      Attention needed from Camillo Bruni

      Andrey Kosyakov voted and added 2 comments

      Votes added by Andrey Kosyakov

      Code-Review+1

      2 comments

      Patchset-level comments
      Andrey Kosyakov . resolved

      lgtm

      File third_party/blink/renderer/bindings/core/v8/v8_code_cache.cc
      Line 689, Patchset 5 (Latest): inspector_compile_script_event::ScriptId(maybe_unbound_script),
      Andrey Kosyakov . unresolved

      just `maybe_unound_script` now?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Camillo Bruni
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement 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: Ie0e5c4085477c44b9305e6ee1e64a188ccbab52d
      Gerrit-Change-Number: 7520908
      Gerrit-PatchSet: 5
      Gerrit-Owner: Camillo Bruni <cbr...@chromium.org>
      Gerrit-Reviewer: Andrey Kosyakov <ca...@chromium.org>
      Gerrit-Reviewer: Camillo Bruni <cbr...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Camillo Bruni <cbr...@chromium.org>
      Gerrit-Comment-Date: Tue, 05 May 2026 16:48:58 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages