Questions tagged «cprofile»


1
cProfile输出上的tottime和cumtime有什么区别?
我正在main.py使用cProfile通过以下命令来分析python脚本: python -m cProfile -s tottime main.py 我得到的输出是(仅复制粘贴输出的第一行): 10184337 function calls (10181667 primitive calls) in 13.597 seconds Ordered by: internal time ncalls tottime percall cumtime percall filename:lineno(function) 1 4.674 4.674 13.598 13.598 main.py:2(<module>) 2142 2.964 0.001 4.663 0.002 load_aerdat3.py:61(getPacket) 459 2.381 0.005 2.381 0.005 {waitKey} 1667989 1.170 0.000 1.170 0.000 …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.