Skip to content

tp: fix parsing of Chrome Devtools/NodeJS CPU profiling data#1267

Merged
LalitMaganti merged 1 commit intomainfrom
dev/lalitm/v8
Apr 15, 2025
Merged

tp: fix parsing of Chrome Devtools/NodeJS CPU profiling data#1267
LalitMaganti merged 1 commit intomainfrom
dev/lalitm/v8

Conversation

@LalitMaganti
Copy link
Copy Markdown
Member

@LalitMaganti LalitMaganti commented Apr 14, 2025

Turns out they use a separate format to V8 with a more standardised
system [1]. Since supporting it is quite simple, just do it.

See discussion at #275 for what prompted this.

[1] https://chromedevtools.github.io/devtools-protocol/tot/Profiler/#type-ProfileNode

Turns out they use a separate format to V8 with a more standardised
system [1]. Since supporting it is quite simple, just do it.

[1] https://chromedevtools.github.io/devtools-protocol/tot/Profiler/#type-ProfileNode
@LalitMaganti LalitMaganti merged commit d0fcd01 into main Apr 15, 2025
18 checks passed
@LalitMaganti LalitMaganti deleted the dev/lalitm/v8 branch April 15, 2025 09:53
@hardfist
Copy link
Copy Markdown

hardfist commented Jun 6, 2025

@LalitMaganti sorry to bother, but it seems this only fixes the json_trace_tokenizer and not fixes the track_event_tokenizer, when I try to migrate from json format trace to proto format trace, it seems the track_event tokenizer not support NodeJS style CPU profiling yet.
the following is pftrace contains NodeJS CPU profiling but seems not working
trace.pftrace.zip

@LalitMaganti
Copy link
Copy Markdown
Member Author

Unfortunately I don't have any bandwidth to work on this as I'm in the midst of some major projects. Patches welcome if you want to contribute, with the existing code it should be pretty straightforward to see how to do it.

olehkuznetsov pushed a commit to olehkuznetsov/perfetto that referenced this pull request Mar 12, 2026
…1267)

Turns out they use a separate format to V8 with a more standardised
system [1]. Since supporting it is quite simple, just do it.

See discussion at google#275 for what
prompted this.

[1]
https://chromedevtools.github.io/devtools-protocol/tot/Profiler/#type-ProfileNode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants