Thread: oprofile!!!

  1. #1
    Registered User
    Join Date
    Jun 2009



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

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    segmentation fault
    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

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    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!

    "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

  4. #4
    Registered User
    Join Date
    Jun 2009
    Thanks guyz.......Will let you know if I need any help....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 03-29-2009, 12:27 PM