PERF2GV(1)
β¨ NAME β¨
perf2gv β bestie, this one converts perf data into a Call Graph π
πΈ SYNOPSIS & DESCRIPTION πΈ
Okay so the vibe is: you run it like this π«Ά
perf2gv < PERF_OUTPUT > CALL_GRAPH.gv
perf2gv is a simple script β like, genuinely simple, not doing anything extra β and what it does is generate a call graph from the perf data you collected on Intel machines using the Last Branch Register (LBR) hardware. No cap, that's the whole job β¨
So you'd collect it like this:
perf record -e branches:u -j any_call executable_under_test
Iconic. Here's an actual example if you wanna see it in the wild π¦
perf record -e branches:u -j any_call example_prog
perf report --no-demangle | perf2gv > example_prog.gv
π Heads up bestie:perf2gvreads from standard input and writes to standard output, so keep those<and>redirects exactly where they are or the whole thing just vibes into your terminal instead.
π AUTHOR π
William Cohen
π COPYRIGHT π
2013, William Cohen
Version 0.8 π β dated Jul 25, 2025, living in the sediment manual, filed under PERF2GV(1). That's the whole page bestie, slay, go make some call graphs πβ¨π
π¦ where this page comes from
- fedora 43: sediment 0.9.4-3.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms