7
perf stat Collects statistics
8
perf record Record events
9
perf report/annotate Report the recorded events
15
perf stat -d ./mult_sse_debug
16
perf stat -d -p PID (until Ctrl+C)
17
perf stat -d -a (system wide)
19
perf record -e '{instructions}' -g dwarf -a
21
perf stat -e event1,event2 <app> (specific events)
23
perf record -F 1000 ./mult_sse_debug (sampling at 1000 Hz)
24
perf report (all samples separately)
25
perf script (better for script processing)
26
perf report -n (standard profile)
27
perf report -n --stdio (output to standard output)
28
perf annotate --source (mixed with assembler, no other way)
30
perf mem -t load record <application> (recording)
31
perf mem -t load report
32
perf mem -t load report --sort mem
37
- Instrument the kernel tcp_sendmsg() function
38
perf probe --add tcp_sendmsg
39
perf record -e probe:tcp_sendmsg -ag -- sleep 5
40
perf probe --del tcp_sendmsg
48
perf stat -e 'syscalls:sys_enter_*' Count system calls
49
perf stat -e 'block:*' -a Count block device I/O events
50
perf stat -e L1-dcache-loads,L1-dcache-load-misses,L1-dcache-stores L1 analyses
51
perf stat -e 'syscalls:sys_enter_*' Count syscalls
56
perf stat -e task-clock,cycles,instructions,cache-references,cache-misses <app>
b'\\ No newline at end of file'