[issue10377] cProfile incorrectly labels its output
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in r86580 (py3k), r86581 and r86582. -- components: +Library (Lib) resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10377] cProfile incorrectly labels its output
Senthil Kumaran orsent...@gmail.com added the comment: On Tue, Nov 09, 2010 at 07:15:57PM +, Jean-Paul Calderone wrote: cProfile.run(import time; time.sleep(1)) 4 function calls in 1.012 CPU seconds It is not the case that the profiled code uses 1 CPU seconds. It spends the entire time sleeping. The default timer for cProfile is a wallclock timer. The output should reflect this. So, It should just be 1.012 seconds, instead of 1.012 CPU seconds. Correct? Or is there any other technically more accurate way to say? -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10377] cProfile incorrectly labels its output
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10377] cProfile incorrectly labels its output
New submission from Jean-Paul Calderone inva...@example.invalid: Consider this transcript: cProfile.run(import time; time.sleep(1)) 4 function calls in 1.012 CPU seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 10.0110.0111.0121.012 string:1(module) 10.0000.0001.0121.012 {built-in method exec} 11.0011.0011.0011.001 {built-in method sleep} 10.0000.0000.0000.000 {method 'disable' of '_lsprof.Profiler' objects} It is not the case that the profiled code uses 1 CPU seconds. It spends the entire time sleeping. The default timer for cProfile is a wallclock timer. The output should reflect this. -- messages: 120890 nosy: exarkun priority: normal severity: normal status: open title: cProfile incorrectly labels its output type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com