()
| 71 | TICKS += 1 |
| 72 | |
| 73 | def helper1(): |
| 74 | # 4 calls |
| 75 | # 30 ticks total: 29 ticks local, 1 tick in subfunctions |
| 76 | global TICKS |
| 77 | TICKS += 10 |
| 78 | hasattr(C(), "foo") # 1 |
| 79 | TICKS += 19 |
| 80 | lst = [] |
| 81 | lst.append(42) # 0 |
| 82 | sys.exception() # 0 |
| 83 | |
| 84 | def helper2_indirect(): |
| 85 | helper2() # 50 |