calc_profile.py 101 Bytes
import pstats
p = pstats.Stats('calc.profile')
p.strip_dirs().sort_stats('cumulative').print_stats()