0

Which tool is to use for CPU cycle, cache miss counting (for selected functions in user process)?

TSC instruction doesn't count context switches, interruptions.

I made basic search on this field, see below. If this question isn't appropriated for SO please move it or vote for close...

In some blog post author uses pfmon command (for Itanium/ADM64/Intel P6 CPUs) to get CPU cycles count spending in selected functions.

This tool seems belong to http://perfmon2.sourceforge.net/ project.

There are no corresponding packages in Debian/Ubuntu.

Same is with http://oprofile.sourceforge.net/ project. I think this is for some good reason, but who know...

Also there is Performance Counters for Linux presented by perf tool and it available through linux-perf package.

Also I found vendor tools:

Community
  • 1
  • 1
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
  • Sorry to ask the usual question: Is your purpose to find ways to speed up the program? In other words, are you looking for "bottlenecks", or are you just looking for numbers? – Mike Dunlavey Sep 23 '15 at 21:57
  • *bottlenecks*, to understand how code decisions make performance results – gavenkoa Sep 24 '15 at 06:58
  • 1
    OK, then maybe you've seen [*this*](http://stackoverflow.com/a/927773/23771), showing that there can be huge performance opportunities that have nothing to do with processor-level events. – Mike Dunlavey Sep 24 '15 at 12:43

0 Answers0