Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python line_profiler

$ 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: #python
ADD COMMENT
Topic
Name
6+3 =