[mod_python] Profiling mod_python

Colin Bean ccbean at gmail.com
Thu Nov 30 14:35:27 EST 2006

Hi Lars,

I've never used psyco, but after a quick look at the documentation it
looks like "profiling" under psyco analyzes the code and creates and
optimized/compiled version.  Is this what you need to do?

If you're only interested in profiling as in seeing how much time each
function takes, you can use the python profile module, and create a
new handler that runs your original handler under profile, and saves
the results.  There's an example with PSP here:


On 11/28/06, Lars Eriksen <downgrade at gmx.org> wrote:
> Not that I couldn't isolate the code that I'm interested in and profile
> it "offline", but is there in the name of comfort a way to profile a
> mod_python app?
> Psyco doesn't work here, I only get a list of "unknown opcode" errors in
> the profile log ... is it worth trying to make it work?
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python

More information about the Mod_python mailing list