I tried to profile certain methods of dabo and my app this morning and am
finding I
get this traceback on Mac and Linux with python 2.6.5. I've used @profile
before and
didn't have trouble, but it has probably been a while.
Here's the traceback generated using this code in my main.py:
"""
...
from dabo.lib.profilehooks import profile
@profile
def main():
...
"""
I notice that @coverage works without any errors. Here's the traceback:
*** PROFILER RESULTS ***
main (sbs_studio.py:16)
function called 1 times
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/atexit.py",
line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/pmcnett/dabo-full/trunk/dabo/lib/profilehooks.py", line 305, in
atexit
self.print_stats()
File "/home/pmcnett/dabo-full/trunk/dabo/lib/profilehooks.py", line 288, in
print_stats
stats.strip_dirs()
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pstats.py",
line 268, in strip_dirs
(cc, nc, tt, ct, newcallers))
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pstats.py",
line 516, in add_func_stats
add_callers(t_callers, callers))
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pstats.py",
line 526, in add_callers
zip(caller, new_callers[func])])
TypeError: zip argument #1 must support iteration
Error in sys.exitfunc:
Traceback (most recent call last):
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/atexit.py",
line 24, in _run_exitfuncs
func(*targs, **kargs)
File "/home/pmcnett/dabo-full/trunk/dabo/lib/profilehooks.py", line 305, in
atexit
self.print_stats()
File "/home/pmcnett/dabo-full/trunk/dabo/lib/profilehooks.py", line 288, in
print_stats
stats.strip_dirs()
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pstats.py",
line 268, in strip_dirs
(cc, nc, tt, ct, newcallers))
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pstats.py",
line 516, in add_func_stats
add_callers(t_callers, callers))
File
"/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/pstats.py",
line 526, in add_callers
zip(caller, new_callers[func])])
TypeError: zip argument #1 must support iteration
Do we simply need to update profilehooks?
Paul
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]