test_profile 74 function calls in 1.000 CPU seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 12 0.000 0.000 0.012 0.001 :0(hasattr) 8 0.000 0.000 0.000 0.000 :0(range) 1 0.000 0.000 0.000 0.000 :0(setprofile) 1 0.000 0.000 1.000 1.000 :1(?) 0 0.000 0.000 profile:0(profiler) 1 0.000 0.000 1.000 1.000 profile:0(testfunc()) 1 0.400 0.400 1.000 1.000 test_profile.py:23(testfunc) 2 0.080 0.040 0.600 0.300 test_profile.py:32(helper) 4 0.116 0.029 0.120 0.030 test_profile.py:50(helper1) 8 0.312 0.039 0.400 0.050 test_profile.py:58(helper2) 8 0.064 0.008 0.080 0.010 test_profile.py:68(subhelper) 28 0.028 0.001 0.028 0.001 test_profile.py:80(__getattr__)