table of contents
PERF-ANNOTATE(1) | perf Manual | PERF-ANNOTATE(1) |
NAME¶
perf-annotate - Read perf.data (created by perf record) and display annotated code
SYNOPSIS¶
perf annotate [-i <file> | --input=file] [symbol_name]
DESCRIPTION¶
This command reads the input file and displays an annotated version of the code. If the object file has debug symbols then the source code will be displayed alongside assembly code.
If there is no debug info in the object, then annotated assembly is displayed.
OPTIONS¶
-i, --input=<file>
-d, --dsos=<dso[,dso...]>
-s, --symbol=<symbol>
-f, --force
-v, --verbose
-q, --quiet
-n, --show-nr-samples
-D, --dump-raw-trace
-k, --vmlinux=<file>
--ignore-vmlinux
-m, --modules
-l, --print-line
-P, --full-paths
--stdio
--stdio2
--stdio-color=<mode>
--tui
--gtk
-C, --cpu=<cpu>
--asm-raw
--show-total-period
--source
--symfs=<directory>
-M, --disassembler-style=
--objdump=<path>
--skip-missing
--group
--percent-type
The local/global keywords set if the percentage is computed in the scope of the function (local) or the whole data (global). The period/hits keywords set the base the percentage is computed on - the samples period or the number of samples (hits).
SEE ALSO¶
06/04/2024 | perf |