Answers for "measure time per line python"

1

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
Posted by: Guest on February-13-2022

Python Answers by Framework

Browse Popular Code Answers by Language