Repository navigation
feat: capture Node.js trace categories via Perfetto - #50591
Merged
Merged
Conversation
Member
Author
|
I will see if a variation of the V8 patch can be upstreamed, the Node.js patch should reduce when they adopt Perfetto nodejs/diagnostics#654 |
Member
Author
Member
Author
Started discussion in https://issues.chromium.org/issues/457135433#comment5, but any changes will be a followup |
jkleinsc
requested changes
Apr 8, 2026
jkleinsc
left a comment
Member
There was a problem hiding this comment.
@deepak1556 can you rebase and update the patches?
deepak1556
force-pushed
the
robo/enable_node_perfetto
branch
from
April 9, 2026 04:16
19e9f98 to
22c8b7c
Compare
erickzhao
approved these changes
Apr 9, 2026
erickzhao
left a comment
Member
There was a problem hiding this comment.
API LGTM
stamping, no public API surface changes
dsanders11
approved these changes
Apr 10, 2026
deepak1556
enabled auto-merge (squash)
April 10, 2026 06:51
deepak1556
disabled auto-merge
April 10, 2026 07:02
ckerr
added a commit
that referenced
this pull request
Aug 5, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
ckerr
added a commit
that referenced
this pull request
Aug 5, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
ckerr
added a commit
that referenced
this pull request
Aug 7, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
ckerr
added a commit
that referenced
this pull request
Aug 7, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
Contributor
|
@VerteDinde has manually backported this PR to "42-x-y", please check out #52973 |
MarshallOfSound
pushed a commit
that referenced
this pull request
Aug 19, 2026
feat: capture Node.js trace categories via Perfetto (#50591) * feat: capture Node.js trace categories via Perfetto * fix: crash in ELECTRON_RUN_AS_NODE * chore: cleanup macro usage * chore: update patches Backport notes: patches/node regenerated against this branch's Node (v24.18.1); build_enable_perfetto.patch content is identical to the original change, the other node patch updates are index/offset only. (cherry picked from commit c0f187f) Co-authored-by: Robo <hop2deep@gmail.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 20, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 20, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 24, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 24, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 24, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 24, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 24, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 24, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 25, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 25, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 25, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 25, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 25, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 25, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
deepak1556
pushed a commit
that referenced
this pull request
Aug 26, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
deepak1556
pushed a commit
that referenced
this pull request
Aug 26, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 26, 2026
Ref: #50591 Co-Authored-By: GitHub Copilot <copilot@github.com>
jkleinsc
pushed a commit
that referenced
this pull request
Aug 26, 2026
Electron builds Node exclusively with Perfetto since #50591. Wire the upstream Perfetto agent directly and drop the legacy header split and dual-backend source lists. Ref: #50591 Ref: nodejs/node#64565 Co-Authored-By: GitHub Copilot <copilot@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description of Change
Chromium migrated from its legacy tracing system to Perfetto. Node.js trace events were silently dropped because they relied on APIs that no longer function under Perfetto (pointer-based category checks, comma-separated category strings, phase-limited SDK macros).
Chromium:
Register
nodeas a dynamic category prefix inPERFETTO_DEFINE_TEST_CATEGORY_PREFIXES. This lets Perfetto treat anynode.*category string as a valid category.V8:
Replace phase-specific Perfetto SDK macros with
INTERNAL_TRACE_EVENT_ADDlegacy shim macros, which accept arbitrary phase characters. This restores support for nestable async (b/e), counter (C), and other phases used by Node.js.Node.js:
When compiled inside Chromium, static registration is skipped in favor of the dynamic prefix approach. Replace all
TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLEDpointer checks withTRACE_EVENT_CATEGORY_ENABLED, the old API does a static registry lookup that fails for dynamic categories.Change
TRACING_CATEGORY_NODEmacros from comma-separated"node,node.fs.sync"to single strings"node.fs.sync".Add trace events for
performance.markandperformance.measurebased on blink.user_timing implementation.Release Notes
Notes: Fixed contentTracing module to capture Node.js trace categories.