Profiling and generating call graphs

Discussion in 'C Programming' started by Andrea Crotti, Jul 29, 2010.

  1. I'm trying to use the wonderful [1] gprof2dot to generate graphs of
    function calls.

    And I think I'm missing something because I don't get all the possible
    calls and the percent of time used.
    I added all the possible options found like
    gcc -pg -g (when compiling)

    And for gprof and gprof2dot
    gprof --static-call-graph -m 0 $PROG | $GPROF2DOT -e0.01 -n0.01

    But still I don't get anything really that makes sense.
    Any idea?
    Thanks


    Footnotes:

    [1] http://code.google.com/p/jrfonseca/wiki/Gprof2Dot
    Andrea Crotti, Jul 29, 2010
    #1
    1. Advertising


  2. > I'm trying to use the wonderful [1] gprof2dot to generate graphs of
    > function calls.
    >
    > And I think I'm missing something because I don't get all the possible
    > calls and the percent of time used.
    > I added all the possible options found like
    > gcc -pg -g (when compiling)
    >
    > And for gprof and gprof2dot
    > gprof --static-call-graph -m 0 $PROG | $GPROF2DOT -e0.01 -n0.01
    >
    > But still I don't get anything really that makes sense.
    > Any idea?
    > Thanks
    >
    >
    > Footnotes:
    >
    > [1] http://code.google.com/p/jrfonseca/wiki/Gprof2Dot


    Nobody using gprof?
    Maybe could you suggest something else to generate nice call graphs from
    code execution?

    Thanks
    Andrea Crotti, Jul 31, 2010
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    4
    Views:
    453
    Nigel Wade
    Mar 10, 2006
  2. Ike
    Replies:
    3
    Views:
    431
    Nico Schuyt
    Dec 17, 2003
  3. Replies:
    7
    Views:
    618
  4. Andreas Waldenburger

    Re: Generating SVG Graphs

    Andreas Waldenburger, Jan 26, 2009, in forum: Java
    Replies:
    1
    Views:
    377
    Andreas Waldenburger
    Jan 27, 2009
  5. ryan
    Replies:
    1
    Views:
    111
    Mumia W.
    May 30, 2007
Loading...

Share This Page