src: add perfetto trace agent#64565
Open
legendecas wants to merge 5 commits into
Open
Conversation
Collaborator
|
Review requested:
|
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
legendecas
force-pushed
the
perfetto-build-sdk
branch
from
July 17, 2026 19:59
8213a32 to
5745cc2
Compare
legendecas
force-pushed
the
perfetto-build-sdk
branch
6 times, most recently
from
July 17, 2026 21:00
7c5702c to
edae450
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #64565 +/- ##
==========================================
- Coverage 90.23% 90.23% -0.01%
==========================================
Files 739 741 +2
Lines 241744 241827 +83
Branches 45564 45576 +12
==========================================
+ Hits 218149 218202 +53
- Misses 15115 15164 +49
+ Partials 8480 8461 -19
🚀 New features to boost your workflow:
|
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
legendecas
force-pushed
the
perfetto-build-sdk
branch
from
July 18, 2026 01:28
edae450 to
450a910
Compare
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.
This implements the Perfetto tracing support. The support is enabled with configure flag
--with-perfetto.A perfetto trace is written to files like
node_trace.1.pftrace(protobuf encoded) by default, when the trace is enabled. Trace files can be viewed on https://ui.perfetto.dev/. JSON output is intentionally not supported.As of this PR, when perfetto is enabled, inspector trace support is disabled. Supporting perfetto in inspector would need change to the inspector protocol to deliver raw bytes directly, instead of protocol object values.
Refs: nodejs/diagnostics#654