Skip to content

derrickstolee/trace2-flamechart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate flamecharts from Git trace2 data

You can generate trace2 event data for a Git command as follows:

GIT_TRACE2_EVENT="$(pwd)/trace.txt" \
        GIT_TRACE2_EVENT_DEPTH=100 \
        GIT_TRACE2_EVENT_BRIEF=false \
        git <arguments>

To install and run the conversion tool, use the following:

npm install -g derrickstolee/trace2-flamechart
npx derrickstolee/trace2-flamechart <trace.txt >trace.svg

You can then open the SVG in your browser or favorite SVG editor to see output such as this:

An example flamechart

The text labels might be cluttered, so use your favorite editor to modify the flamecharts as you please. You can also combine multiple flamecharts to demonstrate a change in performance:

Two git fetch calls

License

trace2-flamechart is available via the MIT License.

About

Generate flamegraphs from Git trace2 events

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published