Main Page
From Perf Wiki
(Difference between revisions)
(→References/Useful links) |
|||
Line 32: | Line 32: | ||
=== References/Useful links === | === References/Useful links === | ||
− | * <tt>[[http://indico.cern.ch/materialDisplay.py?contribId=20&sessionId=4&materialId=slides&confId=141309 | + | * <tt>[[http://indico.cern.ch/materialDisplay.py?contribId=20&sessionId=4&materialId=slides&confId=141309 Roberto Vitillo's presentation on Perf events]] |
Revision as of 05:51, 20 February 2013
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
- perf stat: obtain event counts
- perf record: record events for later reporting
- perf report: break down events by process, function, etc.
- perf annotate: annotate assembly or source code with event counts
- perf top: see live event count
To learn more, see the examples in the Tutorial.