[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-cpp-sig
Subject:    [C++-sig] profiling code
From:       jbrandmeyer () earthlink ! net (Jonathan Brandmeyer)
Date:       2004-09-16 14:22:00
Message-ID: 1095337311.4803.38.camel () illuvatar
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic