'\" t .\" Title: Callgrind Annotate .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 01/02/2024 .\" Manual: callgrind_annotate .\" Source: Release 3.20.0 .\" Language: English .\" .TH "CALLGRIND ANNOTATE" "1" "01/02/2024" "Release 3\&.20\&.0" "callgrind_annotate" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" callgrind_annotate \- post\-processing tool for the Callgrind .SH "SYNOPSIS" .HP \w'\fBcallgrind_annotate\fR\ 'u \fBcallgrind_annotate\fR [\fIoptions\fR] [\fIcallgrind\-out\-file\fR\ [\fIsource\-files\fR...]] .SH "DESCRIPTION" .PP \fBcallgrind_annotate\fR takes an output file produced by the Valgrind tool Callgrind and prints the information in an easy\-to\-read form\&. .SH "OPTIONS" .PP \fB\-h \-\-help\fR .RS 4 Show summary of options\&. .RE .PP \fB\-\-version\fR .RS 4 Show version of callgrind_annotate\&. .RE .PP \fB\-\-show=A,B,C [default: all]\fR .RS 4 Only show figures for events A,B,C\&. .RE .PP \fB\-\-threshold=<0\-\-100> [default: 99%] \fR .RS 4 Percentage of counts (of primary sort event) we are interested in\&. .sp 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\&. .RE .PP \fB\-\-sort=A,B,C\fR .RS 4 Sort columns by events A,B,C [event column order]\&. .sp Optionally, each event is followed by a : and a threshold, to specify different thresholds depending on the event\&. .sp 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\&. .sp When one or more thresholds are given via this option, the value of \fB\-\-threshold\fR is ignored\&. .RE .PP \fB\-\-show\-percs= [default: no] \fR .RS 4 When enabled, a percentage is printed next to all event counts\&. This helps gauge the relative importance of each function and line\&. .RE .PP \fB\-\-auto= [default: yes] \fR .RS 4 Annotate all source files containing functions that helped reach the event count threshold\&. .RE .PP \fB\-\-context=N [default: 8] \fR .RS 4 Print N lines of context before and after annotated lines\&. .RE .PP \fB\-\-inclusive= [default: no] \fR .RS 4 Add subroutine costs to functions calls\&. .RE .PP \fB\-\-tree= [default: none] \fR .RS 4 Print for each function their callers, the called functions or both\&. .RE .PP \fB\-I, \-\-include= \fR .RS 4 Add \fBdir\fR to the list of directories to search for source files\&. .RE .SH "SEE ALSO" .PP valgrind(1), $INSTALL/share/doc/valgrind/html/index\&.html or http://www\&.valgrind\&.org/docs/manual/index\&.html\&. .SH "AUTHOR" .PP Josef Weidendorfer \&. .PP This manual page was written by Philipp Frauenfelder \&.