pstats: negative time values

Tom Mortimer tom at lemurconsulting.com
Tue Apr 26 06:16:57 EDT 2005


Hi,

A quick question - can anyone tell me how to interpret
negative time values in pstats.Stats.print_stats() output?
Eg -

     39052965 function calls (38035317 primitive calls) in -250.959 CPU 
seconds

     Ordered by: internal time
     List reduced from 202 to 20 due to restriction <20>

     ncalls  tottime  percall  cumtime  percall 
filename:lineno(function)
     5829    26.423   0.005    -155.269  -0.027 :0(parse)
     ...


This is with Python 2.4 on Linux.  Is it a bug, or what
does it mean?

Thanks!

Tom



More information about the Python-list mailing list