[C++-sig] profiling C++ extensions

David Abrahams david.abrahams at rcn.com
Sat Mar 2 05:30:51 CET 2002


Hi Greg,

Sorry, I don't know the answer, but would be interested if you find out.
Since this question is totally independent of wrapping technology and this
forum is rather Boost.Python-centric at the moment, you'd probably do better
to ask on the general python-list.

Regards,
Dave

----- Original Message -----
From: "Greg Landrum" <greglandrum at earthlink.net>


>
> [Linux, python 2.1]
> Hi All,
>
> I'm not sure this is the appropriate forum for this question, but I
figured
> I'd try here first.
>
> I've got a Boostified C++ class that I'm using from Python.  The class
> supports pickling, but restoring things from pickles seems to be really,
> really slow.  I figured that I'd profile the code and find out where the
> time is being spent, but I ran into a wall.
>
> I built both my extension modules and python itself with -pg.  Running a
> test case and looking at the gprof output only shows me numbers for the
> python interpreter itself.  This is none too edifying.
>
> So, my question is: is there any way to trick the profiler into gathering
> data for the extension modules as well as the interpreter?
>
> Thanks,
> -greg
> ----
> greg Landrum (greglandrum at earthlink.net)
> Software Carpenter/Computational Chemist
>
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig





More information about the Cplusplus-sig mailing list