Gtrap is a lightweight, client‑side treemap viewer for GNU gprof. Drop your profile.txt into the browser to explore runtime hotspots, and call hierarchies. No installs needed.
- Project: https://github.com/41pha1/gtrap
- Issues: https://github.com/41pha1/gtrap/issues
- Gprof manual: https://ftp.gnu.org/old-gnu/Manuals/gprof-2.9.1/html_mono/gprof.html
- Parses gprof text output in the browser and renders an interactive, zoomable treemap where area ≈ runtime.
- Clean labels, ancestor highlighting, breadcrumb navigation, and tooltips with full signatures.
- Filters by depth and minimum percent.
- Max depth: limit layout depth
- Min %: filter nodes below this threshold
- Color by: percent / depth / hierarchy
- Palette: switch color scales
- Zoom: click to drill in, Esc/▲ to go up