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.

classification
Title: Tottime column for cprofile output does not add up
Type: behavior Stage:
Components: Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: jonathanfrawley, terry.reedy
Priority: normal Keywords:

Created on 2021-03-10 12:23 by jonathanfrawley, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg388430 - (view) Author: Jonathan Frawley (jonathanfrawley) Date: 2021-03-10 12:23
I am using cprofile and PStats to try and figure out where bottlenecks are in a program. When I sum up all of the times in the "tottime" column, it only comes to 57% of the total runtime. Is this due to rounding of times or some other issue?
msg388576 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-03-13 00:57
An actual example might help get an answer.
History
Date User Action Args
2022-04-11 14:59:42adminsetgithub: 87627
2021-03-13 00:57:00terry.reedysetnosy: + terry.reedy
messages: + msg388576
2021-03-10 12:23:57jonathanfrawleycreate