Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python 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 #profiler
ADD COMMENT
Topic
Name
9+7 =