开发者

how many times is a line of code executed when the program is running?

开发者 https://www.devze.com 2023-02-13 23:01 出处:网络
Is there some tool that开发者_C百科 tells me the time the program dwells on each line/block of code in python?

Is there some tool that开发者_C百科 tells me the time the program dwells on each line/block of code in python?

Thanks.

Karthick


Look at the profiler that is part of the standard Python distribution. The Python docs include some examples.


I'm a big fan of line_profiler and kernprof:

http://packages.python.org/line_profiler/

0

精彩评论

暂无评论...
验证码 换一张
取 消