How many times is a line of code executed when the program starts?

Is there any tool that tells me the time during which the program stops on every line / block of code in python?

Thank.

Karthick

+3
source share
2 answers

Take a look at the profiler, which is part of the standard Python distribution. The Python docs provide some examples.

+6
source

I am a big fan of line_profiler and kernprof:

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

0
source

Source: https://habr.com/ru/post/1795490/


All Articles