Search code examples
performancecounterperf

Time Based Profiling with perf record


Would you inform me how can I get the value of event counters at each sample when using perf record?

For example:

perf record -F 100 -e instructions ./program

With perf report, I only see overhead. But I want to know if there are ways to view the value of the counter at each sample...


Solution

  • I will answer my own question in case someone else is facing the same issue.

    In order to view the time at which sample is taken and the value of the counter at that time, you can use perf script after executing perf record.