Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 74a1126861ab9a2cf625ebbd7b3386f584475546
https://github.com/WebKit/WebKit/commit/74a1126861ab9a2cf625ebbd7b3386f584475546
Author: Pawel Lampe <[email protected]>
Date: 2026-10-01 (Thu, 01 Oct 2026)
Changed paths:
M Tools/Scripts/webkit-sysprof/README.md
M Tools/Scripts/webkit-sysprof/webkitsysprof/__main__.py
M Tools/Scripts/webkit-sysprof/webkitsysprof/dump/__init__.py
A Tools/Scripts/webkit-sysprof/webkitsysprof/mounts/__init__.py
M Tools/Scripts/webkit-sysprof/webkitsysprof/parser/__init__.py
M Tools/Scripts/webkit-sysprof/webkitsysprof/parser/direct_parser.py
A Tools/Scripts/webkit-sysprof/webkitsysprof/symbolizer/__init__.py
M Tools/Scripts/webkit-sysprof/webkitsysprof/tests/helpers.py
A Tools/Scripts/webkit-sysprof/webkitsysprof/tests/mounts_unittest.py
A Tools/Scripts/webkit-sysprof/webkitsysprof/tests/parser_unittest.py
M Tools/Scripts/webkit-sysprof/webkitsysprof/tests/subcommands_unittest.py
A Tools/Scripts/webkit-sysprof/webkitsysprof/tests/symbolizer_unittest.py
Log Message:
-----------
[webkit-sysprof] Extend "dump" subcommand with collapsed stacktraces output
https://bugs.webkit.org/show_bug.cgi?id=325945
Reviewed by Nikolas Zimmermann.
This change extends the existing `dump` subcommand of webkit-sysprof
adding a --collapsed-stacktraces argument that instructs the tool to
output the profiling data gathered from given sysprof capture file.
The output produced by --collapsed-stacktraces is in the simple format
representing collapsed stracktraces i.e. stracktraces reported one
stactrace per line in a following format:
function_foo;function_bar;... N
where N is the number of samples that were collected precisely for this
stack trace.
The above format can be processed by flamegraph.pl script from
https://github.com/brendangregg/flamegraph to produce flamegraphs or
by AI agents to quickly digest the profiling data.
As this change requires parsing of extra sysprof capture fragments
it also extends the pythonic .syscap file parser and adds some
mechanims to decode the symbols the way actual sysprof does.
Co-authored with Claude.
Canonical link: https://commits.webkit.org/322382@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications