0

[JSC] Add generate-sampling-profiler-flame-graph · WebKit/WebKit@b1de3eb · GitHu...

 4 weeks ago
source link: https://github.com/WebKit/WebKit/commit/b1de3ebeb6572ad061c74d9e81f84cc42cb686da
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Commit

Permalink

[JSC] Add generate-sampling-profiler-flame-graph

Browse files Browse the repository at this point in the history

https://bugs.webkit.org/show_bug.cgi?id=264909
rdar://118482274

Reviewed by Justin Michaud.

This patch adds generate-sampling-profiler-flame-graph, which generates flamegraph html file from JSC sampling profiler output.
For example,

    cat JSON/100/CPP/Speedometer3.0-TodoMVC-WebComponent.json | generate-sampling-profiler-flame-graph > result.html

can generate standalone flamegraph file.

d3.js OSS-ID is OSS-18297 and d3-flame-graph.js OSS-ID is OSS-18298.

* Source/ThirdParty/d3flamegraphjs/LICENSE: Added.
* Source/ThirdParty/d3flamegraphjs/d3-flamegraph-tooltip.min.js: Added.
* Source/ThirdParty/d3flamegraphjs/d3-flamegraph.css: Added.
* Source/ThirdParty/d3flamegraphjs/d3-flamegraph.min.js: Added.
* Source/ThirdParty/d3js/LICENSE: Added.
* Source/ThirdParty/d3js/d3.v7.min.js: Added.
* Tools/Scripts/generate-sampling-profiler-flame-graph: Added.

Canonical link: https://commits.webkit.org/270797@main
Constellation committed Nov 16, 2023
1 parent 3ae0cd0 commit b1de3eb

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK