MCPcopy Index your code
hub / github.com/python/cpython / testfunc

Function testfunc

Lib/test/profilee.py:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 return TICKS
24
25def testfunc():
26 # 1 call
27 # 1000 ticks total: 270 ticks local, 730 ticks in subfunctions
28 global TICKS
29 TICKS += 99
30 helper() # 300
31 helper() # 300
32 TICKS += 171
33 factorial(14) # 130
34
35def factorial(n):
36 # 23 calls total

Callers 15

test_frame_stackMethod · 0.90
newtestFunction · 0.85
run_serverMethod · 0.85
_test_modesMethod · 0.85
test_basic_loopMethod · 0.85
test_pop_jump_if_noneMethod · 0.85
test_pop_jump_if_trueMethod · 0.85
test_jump_backwardMethod · 0.85

Calls 2

helperFunction · 0.70
factorialFunction · 0.70

Tested by 15

test_frame_stackMethod · 0.72
newtestFunction · 0.68
run_serverMethod · 0.68
_test_modesMethod · 0.68
test_basic_loopMethod · 0.68
test_pop_jump_if_noneMethod · 0.68
test_pop_jump_if_trueMethod · 0.68
test_jump_backwardMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…