Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oprofile vs perf [closed]

I am looking a system-wide sampling profilers for Linux. Both perf and OPrfile work off the same hardware counters so I am not sure what the difference between the two are.

So what are the differences between perf and OProfile and when will you use one or the other?

like image 232
doron Avatar asked Jun 13 '13 10:06

doron


1 Answers

Perf seems to be easier to install and run - going by my limited experience.

Here's a link that might be useful: http://rhaas.blogspot.co.uk/2012/06/perf-good-bad-ugly.html

Both can produce call graphs, annotated assembly/source code, kernel level event sampling, etc. I don't see a big difference between them (not that I have used either of them much as of yet).

like image 148
Carl Cook Avatar answered Oct 18 '22 01:10

Carl Cook