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

Function helper

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

Source from the content-addressed store, hash-verified

53 return a * b
54
55def helper():
56 # 2 calls
57 # 300 ticks total: 20 ticks local, 260 ticks in subfunctions
58 global TICKS
59 TICKS += 1
60 helper1() # 30
61 TICKS += 2
62 helper1() # 30
63 TICKS += 6
64 helper2() # 50
65 TICKS += 3
66 helper2() # 50
67 TICKS += 2
68 helper2() # 50
69 TICKS += 5
70 helper2_indirect() # 70
71 TICKS += 1
72
73def helper1():
74 # 4 calls

Callers 6

testfuncFunction · 0.70
test_pydocMethod · 0.70
test_buggy_dirMethod · 0.50

Calls 3

helper1Function · 0.85
helper2Function · 0.85
helper2_indirectFunction · 0.85

Used in the wild real call sites across dependent graphs

searching dependent graphs…