Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

measure time per line python

$ pip3 install line_profiler

@profile
def slow_function(a, b, c):
    ...

$ kernprof -l script_to_profile.py
$ python -m line_profiler script_to_profile.py.lprof
 
PREVIOUS NEXT
Tagged: #measure #time #line #python
ADD COMMENT
Topic
Name
5+5 =