Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

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:26] – [Listing Events] adminoutils_analyse:linuxperf [2018/05/15 21:06] (Version actuelle) – [Links] admin
Ligne 20: Ligne 20:
  
 ===== Counting Events ===== ===== Counting Events =====
 +'''perf stat''' runs a command and collects Linux performance statistics during the execution of such command.
  
-CPU counter statistics for the specified command:+**Example: CPU counter statistics for the specified command**
  
 <code bash> <code bash>
-$ perf stat ./matmul+$ perf stat ./ser_matmul
  
 Performance counter stats for './ser_matmul': Performance counter stats for './ser_matmul':
Ligne 44: Ligne 45:
 </code> </code>
  
 +Various CPU level 1 data cache statistics for the specified command:
 +
 +<code bash>
 +$ perf stat -e L1-dcache-loads,L1-dcache-load-misses,L1-dcache-stores  ./ser_matmul
 +
 +Performance counter stats for './ser_matmul':
 +
 +     3 237 999 611 L1-dcache-loads
 +                                            
 +     1 639 446 360 L1-dcache-misses
 +         #   50,63% of all L1-dcache hits  
 +        12 950 108 L1-dcache-stores
 +                                           
 +
 +      10,537918325 seconds time elapsed
 +
 +</code>
 +
 +
 +
 +====== Links ======
 +
 +  /* http://sandsoftwaresound.net/perf/perf-tutorial-hot-spots/*/
 +  * http://www.brendangregg.com/perf.html
 +  * https://perf.wiki.kernel.org/index.php/Tutorial#multiplexing_and_scaling_events
  
  • outils_analyse/linuxperf.1520501171.txt.gz
  • Dernière modification : 2018/03/08 09:26
  • de admin