[C++-sig] profiling code

Jonathan Brandmeyer jbrandmeyer at earthlink.net
Thu Sep 16 14:21:52 CEST 2004


On Thu, 2004-09-16 at 07:50, Neal D. Becker wrote:
> I realize this isn't exactly specific to boost-python.  I want to profile my
> boost-python code.  I'm using Linux.
> 
> AFAICT, I would need to use a version of python build with -pg.  Hopefully
> this would allow profiling dynamically loaded modules?  (I haven't tried it
> recently).

You also need to link the interpreter statically against all of the code
that you want to profile, since gprof doesn't work across .so
boundaries.

HTH,
-Jonathan




More information about the Cplusplus-sig mailing list