Archived

This forum has been archived. Please start a new discussion on GitHub.

Profiling IcePatch2 with gprof

Hello. Is it possible to profile IcePatch2 with gprof? I added the -pg flag to the link and compile flags in the makefile. After the run of the IcePatch2-Client the file gmon.out was created as it should have been. But as I tried to start gprof with this file, I got an error message that gmon.out doesn't contain any data about the call graph.

Regards
Ewgenij

Comments

  • I've used gprof on various parts of Ice from time to time, so it should be possible. I suggest revisiting your build options and make sure that all of the relevant parts of Ice are built with the proper command line options.

    Out of curiousity, why are you profiling IcePatch2? Is there a particular aspect of IcePatch2 performance that you are concerned about?

    Cheers,
    Brent
  • Hello, thank you:) No I'm not concerned about the performance of IcePatch2. I just wanted to find out which functions are called by which other functions while it is running. So I wanted the call graph of gprof to give me that information.

    Ewgenij