programming-examples/python/Basics/Determine profiling of Python programs.py

4 lines
73 B
Python
Raw Normal View History

2019-11-18 14:44:36 +01:00
import cProfile
def sum():
print(1+2)
cProfile.run('sum()')