Python Profiler Trouble
Josiah Carlson
jcarlson at nospam.uci.edu
Wed Feb 25 16:49:56 EST 2004
> Is this because I'm hitting ^C before it finishes? Do I have to let the
> program run to completion to get good results? Since I don't want to wait
> the many hours (or even many days) for this profiling info, is there a
> better way that I can profile portions of the this large test case rapidly?
Use a smaller test case.
Profile smaller portions of the internals one at a time:
def funct():
funct1()
funct2()
funct3()
becomes
def funct():
profile('funct1()')
profile('funct2()')
profile('funct3()')
From here you should be able to figure the rest out.
- Josiah
More information about the Python-list
mailing list