Main Page

From Perf Wiki
(Difference between revisions)
Jump to: navigation, search
(References/Useful links)
(add perf-bench entry)
Line 21: Line 21:
 
* <tt>[[Tutorial#Source_level_analysis_with_perf_annotate | perf annotate</tt>]]: annotate assembly or source code with event counts
 
* <tt>[[Tutorial#Source_level_analysis_with_perf_annotate | perf annotate</tt>]]: annotate assembly or source code with event counts
 
* <tt>[[Tutorial#Live_analysis_with_perf_top | perf top</tt>]]: see live event count  
 
* <tt>[[Tutorial#Live_analysis_with_perf_top | perf top</tt>]]: see live event count  
 +
* <tt>[[Tutorial#Benchmarking_with_perf_bench | perf bench</tt>]]: run different kernel microbenchmarks
  
 
To learn more, see the examples in the <tt>[[Tutorial]]</tt>.
 
To learn more, see the examples in the <tt>[[Tutorial]]</tt>.

Revision as of 18:27, 30 May 2014

Contents

perf: Linux profiling with performance counters

...More than just counters...

Introduction

This is the wiki page for the perf performance counters subsystem in Linux. Performance counters are CPU hardware registers that count hardware events such as instructions executed, cache-misses suffered, or branches mispredicted. They form a basis for profiling applications to trace dynamic control flow and identify hotspots.

perf provides rich generalized abstractions over hardware specific capabilities. Among others, it provides per task, per CPU and per-workload counters, sampling on top of these and source code event annotation.

The userspace perf tools present a simple to use interface with commands like

To learn more, see the examples in the Tutorial.

Wiki Contents

References/Useful links

Personal tools