programming-examples/python/Basics/Determine profiling of Python programs.py
2019-11-18 14:44:36 +01:00

4 lines
73 B
Python

import cProfile
def sum():
print(1+2)
cProfile.run('sum()')