user3527764
user3527764

Reputation: 115

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...

Upvotes: 0

Views: 1306

Answers (1)

user3527764
user3527764

Reputation: 115

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.

Upvotes: 1

Related Questions