Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

cprofile usage python

pr = cProfile.Profile()
pr.enable()
#code to execute
pr.print_stats(sort='tottime') 
# other sorting methods here:
# https://docs.python.org/3/library/profile.html#pstats.Stats.sort_stats
pr.disable()
Comment

PREVIOUS NEXT
Code Example
Python :: huggingface default cache dir 
Python :: narcissistic number python 
Python :: df drop column 
Python :: set axis plt python 
Python :: python iterate over multidimensional dictionary 
Python :: raise an APi error on django rest view 
Python :: get current time python 
Python :: python des 
Python :: python count distinct letters 
Python :: cv2 videocapture program for python 
Python :: python split on first occurrence 
Python :: print hello world python 
Python :: python set a specific datetime 
Python :: add role discord .py 
Python :: blender python save file 
Python :: find max value index in value count pandas 
Python :: what is my python working directory 
Python :: autopy in python install 
Python :: pygame.display.flip vs update 
Python :: simple jwt django 
Python :: date to day python 
Python :: tkinter input box 
Python :: python input integer 
Python :: what day i s it 
Python :: django dumpdata 
Python :: replace nan with mean 
Python :: unable to open file pygame.mixer 
Python :: python requests with login 
Python :: convert xml to dataframe python 
Python :: python __gt__ 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =