[Python-checkins] r86580 - python/branches/py3k/Lib/pstats.py

senthil.kumaran python-checkins at python.org
Sat Nov 20 18:02:50 CET 2010


Author: senthil.kumaran
Date: Sat Nov 20 18:02:50 2010
New Revision: 86580

Log:
Fix issue10377 - Output from pstats - it is just secs (i.e, wallclock time) and not CPU time.



Modified:
   python/branches/py3k/Lib/pstats.py

Modified: python/branches/py3k/Lib/pstats.py
==============================================================================
--- python/branches/py3k/Lib/pstats.py	(original)
+++ python/branches/py3k/Lib/pstats.py	Sat Nov 20 18:02:50 2010
@@ -348,7 +348,7 @@
         print(indent, self.total_calls, "function calls", end=' ', file=self.stream)
         if self.total_calls != self.prim_calls:
             print("(%d primitive calls)" % self.prim_calls, end=' ', file=self.stream)
-        print("in %.3f CPU seconds" % self.total_tt, file=self.stream)
+        print("in %.3f seconds" % self.total_tt, file=self.stream)
         print(file=self.stream)
         width, list = self.get_print_list(amount)
         if list:


More information about the Python-checkins mailing list