(self, frame=None)
| 154 | frame.f_trace(frame, 'opcode', None) |
| 155 | |
| 156 | def update_local_events(self, frame=None): |
| 157 | if sys.monitoring.get_tool(self._tool_id) != self._name: |
| 158 | return |
| 159 | if frame is None: |
| 160 | frame = sys._getframe().f_back |
| 161 | while frame is not None: |
| 162 | if frame.f_trace is not None: |
| 163 | if frame.f_trace_opcodes: |
| 164 | events = self.LOCAL_EVENTS | E.INSTRUCTION |
| 165 | else: |
| 166 | events = self.LOCAL_EVENTS |
| 167 | sys.monitoring.set_local_events(self._tool_id, frame.f_code, events) |
| 168 | frame = frame.f_back |
| 169 | |
| 170 | def _get_lineno(self, code, offset): |
| 171 | import dis |
no outgoing calls
no test coverage detected