cProfile.py not found.

skip at pobox.com skip at pobox.com
Sun Apr 5 04:02:51 CEST 2009

    Rahul> I need to profile a slow-running code. The problem is I cannot
    Rahul> seem to find cProfile.py.

You want cProfile.c (compiled to cProfile.so).

    Rahul> I am using Python 2.4.4 (#3, Feb 17 2008, 15:06:10). 

cProfile was new in 2.5, but the code backports with no problem to 2.4.
Just grab it from a 2.5 distro and build/install it.

Skip Montanaro - skip at pobox.com - http://www.smontanaro.net/
        "XML sucks, dictionaries rock" - Dave Beazley

More information about the Python-list mailing list