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

Method get_events

Lib/test/test_sys_setprofile.py:48–53  ·  view source on GitHub ↗

Remove calls to add_event().

(self)

Source from the content-addressed store, hash-verified

46 self.events.append((frameno, event, ident(frame), arg))
47
48 def get_events(self):
49 """Remove calls to add_event()."""
50 disallowed = [ident(self.add_event.__func__), ident(ident)]
51 self.frames = None
52
53 return [item for item in self.events if item[2] not in disallowed]
54
55
56class ProfileSimulator(HookWatcher):

Callers 1

capture_eventsFunction · 0.95

Calls 1

identFunction · 0.85

Tested by

no test coverage detected