[Zope-CVS] CVS: Products/ZCTextIndex/tests - hs-tool.py:1.4
Fred L. Drake, Jr.
fdrake@acm.org
Wed, 29 May 2002 11:07:12 -0400
Update of /cvs-repository/Products/ZCTextIndex/tests
In directory cvs.zope.org:/tmp/cvs-serv13296
Modified Files:
hs-tool.py
Log Message:
print_results(): Don't print the "Bad unpack" message; it's not
right. Added a comment explaining what it represents in the
function.
=== Products/ZCTextIndex/tests/hs-tool.py 1.3 => 1.4 ===
def print_results(results):
for info, place in results:
- if not place:
- print 'Bad unpack:', info, place
+ if place is None:
+ # This is the startup time for the profiler, and only
+ # occurs at the very beginning. Just ignore it, since it
+ # corresponds to frame setup of the outermost call, not
+ # anything that's actually interesting.
continue
filename, line, funcname = place
print '%8d %8d' % info, basename(filename), line