Hi,
I need some help regarding oprofile in Linux. Will I be able to see how many times a function has been called and how much time is spent in each function using oprofile???? Thanx in advance.....
Printable View
Hi,
I need some help regarding oprofile in Linux. Will I be able to see how many times a function has been called and how much time is spent in each function using oprofile???? Thanx in advance.....
You can definitely do that with gprof and gcov.
You can also do it in oprofile, pretty much. That's the minimum functionality any profiler needs to be useful. But oprofile doesn't give you a guaranteed call count, since it's a sample-based profiler instead of an instrumenting one. In other words, it's not guaranteed to catch every call of a sufficiently quick function. But over the run of a program, it statistically evens out, which means that the relative time spent in that function will be sufficiently accurate.
Thanks guyz.......Will let you know if I need any help....