Cache looking up for DEBUGGERSKIP on parent frame. This should speedup walking through deep frame when one of the highest one does have a debugger skip. This is likely to introduce fake positive though.
(self, frame)
| 1116 | |
| 1117 | @lru_cache(1024) |
| 1118 | def _cached_one_parent_frame_debuggerskip(self, frame): |
| 1119 | """ |
| 1120 | Cache looking up for DEBUGGERSKIP on parent frame. |
| 1121 | |
| 1122 | This should speedup walking through deep frame when one of the highest |
| 1123 | one does have a debugger skip. |
| 1124 | |
| 1125 | This is likely to introduce fake positive though. |
| 1126 | """ |
| 1127 | while getattr(frame, "f_back", None): |
| 1128 | frame = frame.f_back |
| 1129 | if self._get_frame_locals(frame).get(DEBUGGERSKIP): |
| 1130 | return True |
| 1131 | return None |
| 1132 | |
| 1133 | @lru_cache(1024) |
| 1134 | def _cachable_skip(self, frame): |
no test coverage detected