--cachegrind-out-file=<file>
Write the profile data to file rather than to the default output file, cachegrind.out.<pid>. The %p and %q
format specifiers can be used to embed the process ID and/or the contents of an environment variable in the name, as
is the case for the core option --log-file.
5.4. cg_annotate Command-line Options
-h --help
Show the help message.
--version
Show the version number.
--show=A,B,C [default:
Specifies which events to show (and the column order).
cachegrind.out.<pid> file (and use the order in the file).
example, I cache misses (--show=I1mr,ILmr), or data read misses (--show=D1mr,DLmr), or LL data misses
(--show=DLmr,DLmw). Best used in conjunction with --sort.
--sort=A,B,C [default:
Specifies the events upon which the sorting of the function-by-function entries will be based.
--threshold=X [default:
Sets the threshold for the function-by-function summary. A function is shown if it accounts for more than X% of the
counts for the primary sort event. If auto-annotating, also affects which files are annotated.
Note: thresholds can be set for more than one of the events by appending any events for the --sort option with a
colon and a number (no spaces, though). E.g. if you want to see each function that covers more than 1% of LL read
misses or 1% of LL write misses, use this option:
--sort=DLmr:1,DLmw:1
--auto=<no|yes> [default:
When enabled, automatically annotates every file that is mentioned in the function-by-function summary that can be
found. Also gives a list of those that couldn't be found.
--context=N [default:
Print N lines of context before and after each annotated line. Avoids printing large sections of source files that were
not executed. Use a large number (e.g. 100000) to show all source lines.
-I<dir> --include=<dir> [default:
Adds a directory to the list in which to search for files. Multiple -I/--include options can be given to add multiple
directories.
5.5. cg_diff Command-line Options
-h --help
Show the help message.
--version
Show the version number.
all, using order in cachegrind.out.<pid>]
order in cachegrind.out.<pid>]
0.1%]
no]
8]
none]
Cachegrind: a cache and branch-prediction profiler
Default is to use all present in the
Useful if you want to concentrate on, for
87
Need help?
Do you have a question about the Software and is the answer not in the manual?