git/list[1] front-page[2] threads[3] people[4] search[5] about
 

I made a flame graph renderer for git's trace2 output

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
May 10, 2019, 15:09 UTC
Message-ID
<87zhnuwdkp.fsf@evledraar.gmail.com>

Here's a flamegraph of where git's test suite spends its time on my box: https://vm.nix.is/~avar/noindex/git-tests.svg

I hacked up a script for this today to plot trace2 production data, as noted there it's at: https://github.com/avar/FlameGraph/tree/stackcollapse-git-tr2-event

What are flamegraphs? See http://www.brendangregg.com/flamegraphs.html

As noted in TODOs in the script there's various stuff I'd like to do better, and this also shows how we need a lot more trace regions to get granular data.

But it's already quite cool, and I'll keep improving it. I'll submit a PR to Brendan's parent repo once I'm happy enough with it, I figure it makes more sense there than in git.git, but maybe we'd eventually want to teach the test suite to optionally use something like this.

Next: Derrick Stolee
Message 1 of 9 in “I made a flame graph renderer for git's trace2 output”
  1. Ævar Arnfjörð BjarmasonMay 10, 2019
  2. Derrick StoleeMay 10, 2019
  3. SZEDER GáborMay 10, 2019
  4. Jeff HostetlerMay 20, 2019
  5. Jeff KingMay 10, 2019
  6. Ævar Arnfjörð BjarmasonMay 10, 2019
  7. Jeff HostetlerMay 20, 2019
  8. Ævar Arnfjörð BjarmasonMay 21, 2019
  9. Jeff HostetlerMay 21, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.