Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| outils_analyse:linuxperf [2018/03/08 09:21] – admin | outils_analyse:linuxperf [2018/05/15 21:06] (Version actuelle) – [Links] admin | ||
|---|---|---|---|
| Ligne 6: | Ligne 6: | ||
| <code bash> | <code bash> | ||
| $ perf list | $ perf list | ||
| + | </ | ||
| + | <code bash> | ||
| + | List of pre-defined events (to be used in -e): | ||
| + | cpu-cycles OR cycles | ||
| + | instructions | ||
| + | cache-references | ||
| + | cache-misses | ||
| + | branch-instructions OR branches | ||
| + | branch-misses | ||
| + | ... | ||
| + | ... | ||
| </ | </ | ||
| + | |||
| + | ===== Counting Events ===== | ||
| + | ''' | ||
| + | |||
| + | **Example: CPU counter statistics for the specified command** | ||
| + | |||
| + | <code bash> | ||
| + | $ perf stat ./ | ||
| + | |||
| + | Performance counter stats for ' | ||
| + | |||
| + | 10617, | ||
| + | 54 context-switches | ||
| + | 27 CPU-migrations | ||
| + | 6 306 page-faults | ||
| + | 28 119 617 371 cycles | ||
| + | 23 887 379 283 stalled-cycles-frontend | ||
| + | 16 806 041 279 stalled-cycles-backend | ||
| + | 7 586 969 293 instructions | ||
| + | # | ||
| + | 1 085 642 258 branches | ||
| + | 1 188 913 branch-misses | ||
| + | |||
| + | 10, | ||
| + | |||
| + | </ | ||
| + | |||
| + | Various CPU level 1 data cache statistics for the specified command: | ||
| + | |||
| + | <code bash> | ||
| + | $ perf stat -e L1-dcache-loads, | ||
| + | |||
| + | Performance counter stats for ' | ||
| + | |||
| + | 3 237 999 611 L1-dcache-loads | ||
| + | | ||
| + | 1 639 446 360 L1-dcache-misses | ||
| + | # | ||
| + | 12 950 108 L1-dcache-stores | ||
| + | |||
| + | |||
| + | 10, | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ====== Links ====== | ||
| + | |||
| + | /* http:// | ||
| + | * http:// | ||
| + | * https:// | ||