.. | .. |
---|
15 | 15 | Show individual samples with: perf script |
---|
16 | 16 | Limit to show entries above 5% only: perf report --percent-limit 5 |
---|
17 | 17 | Profiling branch (mis)predictions with: perf record -b / perf report |
---|
| 18 | +To show assembler sample contexts use perf record -b / perf script -F +brstackinsn --xed |
---|
18 | 19 | Treat branches as callchains: perf report --branch-history |
---|
19 | 20 | To count events in every 1000 msec: perf stat -I 1000 |
---|
20 | 21 | Print event counts in CSV format with: perf stat -x, |
---|
.. | .. |
---|
34 | 35 | Show user configuration overrides: perf config --user --list |
---|
35 | 36 | To add Node.js USDT(User-Level Statically Defined Tracing): perf buildid-cache --add `which node` |
---|
36 | 37 | To report cacheline events from previous recording: perf c2c report |
---|
| 38 | +To browse sample contexts use perf report --sample 10 and select in context menu |
---|
| 39 | +To separate samples by time use perf report --sort time,overhead,sym |
---|
| 40 | +To set sample time separation other than 100ms with --sort time use --time-quantum |
---|
| 41 | +Add -I to perf record to sample register values, which will be visible in perf report sample context. |
---|
| 42 | +To show IPC for sampling periods use perf record -e '{cycles,instructions}:S' and then browse context |
---|
| 43 | +To show context switches in perf report sample context add --switch-events to perf record. |
---|