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.....
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.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
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.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
Thanks guyz.......Will let you know if I need any help....