Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Python :: pandas drop row from a list of vlaue 
Python :: python formatting strings 
Python :: thread with args python 
Python :: with in python 
Python :: python remove everything after character 
Python :: STATIC_ROOT 
Python :: render django 
Python :: python infinity 
Python :: reload flask on change 
Python :: xgboosat save_model 
Python :: flask tutorials 
Python :: pyplot rectangle over image 
Python :: seaborn boxplot 
Python :: django id 
Python :: what is from_records in DataFrame() pandas in python? 
Python :: split string by spaces python 
Python :: python soup 
Python :: load json py 
Python :: how to convert binary to text in python 
Python :: correlation between images python 
Python :: types of system 
Python :: python series to list of string 
Python :: create dictionary from string python 
Python :: pandas groupby mean 
Python :: python copy 
Python :: how to give autocomplete in python 
Python :: pandas to dictionary 
Python :: pandas string manipulation on column 
Python :: difference between supervised and unsupervised learning 
Python :: check if there are duplicates in list 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =