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

Method update_local_events

Lib/bdb.py:156–168  ·  view source on GitHub ↗
(self, frame=None)

Source from the content-addressed store, hash-verified

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

Callers 4

start_traceMethod · 0.95
wrapperMethod · 0.95
_set_trace_opcodesMethod · 0.80
set_continueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected