How do I get callgrind to dump source line information?

Posted by Jeremybub on Stack Overflow See other posts from Stack Overflow or by Jeremybub
Published on 2010-05-30T02:00:07Z Indexed on 2010/05/30 2:02 UTC
Read the original article Hit count: 271

Filed under:
|
|
|
|

I'm trying to profile a shared library on GNU/Linux which does real-time audio processing, so performance is important. I run another program which hooks it up to the audio input and output of my system, and profile that with callgrind.

Looking at the results in KCacheGrind, I get great information about what functions are taking up most of my time. However, it won't let me look at the line by line information, and instead says I need to compile it with debugging symbols and run the profiling again.

The program which I am profiling is not compiled with debug symbols, but the library is. And I know this, because interestingly, source code annotations for cachegrind work fine.

When I run callgrind, it says the default is to dump source line information, but it just isn't doing that. Is there some way I could force it to, or figure out what's stopping it?

© Stack Overflow or respective owner

Related posts about c

    Related posts about profiling