CALLGRIND_ANNOTATE(1)
π NAME π
Okay bestie, welcome to the CALLGRIND ANNOTATE(1) manual page β¨ We're talking about callgrind_annotate β the post-processing tool for the Callgrind, periodt π
β¨ SYNOPSIS β¨
callgrind_annotate [options] [callgrind-out-file [source-files...]]
π¦ DESCRIPTION π¦
So callgrind_annotate takes an output file produced by the Valgrind tool Callgrind and prints the information in an easy-to-read form. No cap, that's her whole main character energy π
π OPTIONS π
-h,--helpβ shows a summary of options. Ur welcome π«Ά--versionβ shows the version ofcallgrind_annotateβ--show=A,B,C[default: all] β only show figures for eventsA,B,C. Keep it selective, bestie π--threshold=<0--100>[default: 99%] β this is the percentage of counts (of the primary sort event) we are interested in π
Here's the vibe: callgrind_annotate stops printing functions when the sum of the cost percentage of the printed functions is bigger or equal to the given threshold percentage. Literally the cutoff point, iykyk β¨
--sort=A,B,Cβ sorts columns by eventsA,B,Cin event column order π
Optionally, each event is followed by a : and a threshold, so you can specify different thresholds depending on the event. Fancy, right? π
callgrind_annotate stops printing functions when the sum of the cost percentage of the printed functions for all the events is bigger or equal to the given event threshold percentages. When one or more thresholds are given via this option, the value of --threshold is ignored π
--show-percs=<no|yes>[default: no] β when enabled, a percentage is printed next to all event counts. This helps gauge the relative importance of each function and line πβ¨--auto=<yes|no>[default: yes] β annotate all source files containing functions that helped reach the event count threshold. Very helpful, ngl π¦--context=N[default: 8] β printsNlines of context before and after annotated lines. Snackable context, fr fr π--inclusive=<yes|no>[default: no] β adds subroutine costs to functions calls. Inclusive queen behavior π--tree=<none|caller|calling|both>[default: none] β prints for each function their callers, the called functions or both. Choose ur fighter πΈ-I,--include=<dir>β addsdirto the list of directories to search for source files. Very demure, very directory-search π
π SEE ALSO π
Go peek at valgrind(1), $INSTALL/share/doc/valgrind/html/index.html, or http://www.valgrind.org/docs/manual/index.html πβ¨
π AUTHOR π
Josef Weidendorfer <Josef.Weidendorfer@gmx.de>.
This manual page was written by Philipp Frauenfelder <pfrauenf@debian.org> π«Ά
Okay that's the whole page, bestie β this was Release 3.27.1, dated 06/23/2026, from the CALLGRIND ANNOTATE(1) manual. byeee π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: valgrind 3.27.1-160000.1.1 Β· GFDL-1.2-only AND GPL-3.0-or-later
- opensuse-leap 16.0: valgrind 3.27.1-160000.1.1 Β· GFDL-1.2-only AND GPL-3.0-or-later
- opensuse-leap 16.0: valgrind 3.27.1-160000.1.1 Β· GFDL-1.2-only AND GPL-3.0-or-later
- opensuse-leap 16.0: valgrind 3.27.1-160000.1.1 Β· GFDL-1.2-only AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms