New submission from Arne Babenhauserheide <arne_...@web.de>: cProfile reports the profiling result in a table with the headers
ncalls tottime percall cumtime percall filename:lineno(function) The respective arguments are calls time - cumulative - nfl Since I had to lookup these different names everytime I used cProfile, I think that it should take the table headings as argument aliases. Also there is inconsistent naming of pcalls between docs and code. In the docs of Stats.sort_stats pcalls is named primitive call count. In the code at Stats.sort_arg_dict_default it was just named call count. I created 4 patches to fix that in Python 2.7 and Python 3.2. The first is attached here, the later will be attached to comments. They apply to 822d7a1f8885 for 2.7 and 89b699e68fa2 for 3.2. I also created a patch for adding percall sorting, but that requires more invasive changes and I did not see a simple name to distinguish between the two bycall headings. ---------- components: Library (Lib) files: 2.7-0-pcalls.diff keywords: patch messages: 161508 nosy: ArneBab priority: normal severity: normal status: open title: cProfile does not take its result headers as sort arguments versions: Python 2.7, Python 3.2 Added file: http://bugs.python.org/file25695/2.7-0-pcalls.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14900> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com