src: add perfetto trace agent#64565
Open
legendecas wants to merge 5 commits into
Open
Conversation
Collaborator
|
Review requested:
|
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.14% 90.14%
=======================================
Files 741 743 +2
Lines 242076 242131 +55
Branches 45558 45552 -6
=======================================
+ Hits 218216 218270 +54
+ Misses 15385 15376 -9
- Partials 8475 8485 +10
🚀 New features to boost your workflow:
|
legendecas
force-pushed
the
perfetto-build-sdk
branch
from
July 18, 2026 01:28
edae450 to
450a910
Compare
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>
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
legendecas
force-pushed
the
perfetto-build-sdk
branch
from
July 20, 2026 18:33
450a910 to
ada6a01
Compare
Member
Author
|
CI failure is related to #64633. |
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