()
| 96 | TICKS += 15 |
| 97 | |
| 98 | def subhelper(): |
| 99 | # 8 calls |
| 100 | # 10 ticks total: 8 ticks local, 2 ticks in subfunctions |
| 101 | global TICKS |
| 102 | TICKS += 2 |
| 103 | for i in range(2): # 0 |
| 104 | try: |
| 105 | C().foo # 1 x 2 |
| 106 | except AttributeError: |
| 107 | TICKS += 3 # 3 x 2 |
| 108 | |
| 109 | class C: |
| 110 | def __getattr__(self, name): |