This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ArneBab
Recipients ArneBab
Date 2012-05-24.14:19:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337869163.57.0.920578910684.issue14900@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-05-24 14:19:23ArneBabsetrecipients: + ArneBab
2012-05-24 14:19:23ArneBabsetmessageid: <1337869163.57.0.920578910684.issue14900@psf.upfronthosting.co.za>
2012-05-24 14:19:22ArneBablinkissue14900 messages
2012-05-24 14:19:22ArneBabcreate