Lines Matching refs:frame
16 that we can emit useful visualizations e.g. a string, a list, a dict, a frame
92 FRAME_INFO_OPTIMIZED_OUT = '(frame information optimized out)'
93 UNABLE_READ_INFO_PYTHON_FRAME = 'Unable to read information on python frame'
346 'frame': PyFrameObjectPtr,
946 the local variables of this frame
955 the global variables of this frame
1033 the local variables of this frame
1080 the global variables of this frame
1150 return '(failed to get frame line number)'
1665 '''If supported, select this frame and return True; return False if unsupported
1670 print ('Unable to select frame: '
1677 '''Calculate index of frame, starting at 0 for the newest frame within
1680 # Go down until you reach the newest frame:
1695 '''Is this a _PyEval_EvalFrameDefault frame, or some other important
1696 frame? (see is_other_python_frame for what "important" means in this
1705 '''Is this a _PyEval_EvalFrameDefault frame?'''
1715 # We have a _PyEval_EvalFrameDefault frame:
1721 '''Is this frame worth displaying in python backtraces?
1736 frame = self._gdbframe
1737 caller = frame.name()
1744 # Within that frame:
1751 func = frame.read_var(arg_name)
1762 func = frame.read_var(arg_name)
1770 # This frame isn't worth reporting:
1774 '''Is this frame waiting on the GIL?'''
1781 '''Is this frame gc_collect_main() within the garbage-collector?'''
1786 frame = self._gdbframe.read_var('frame')
1787 frame = PyFramePtr(frame)
1788 if not frame.is_optimized_out():
1789 return frame
1793 frame = PyFramePtr(cframe["current_frame"])
1794 if frame and not frame.is_optimized_out():
1795 return frame
1810 frame, or None'''
1812 frame = cls.get_selected_frame()
1814 # No frame: Python didn't start yet
1817 while frame:
1818 if frame.is_python_frame():
1819 return frame
1820 frame = frame.older()
1828 selected GDB frame, or None'''
1829 frame = cls.get_selected_frame()
1831 while frame:
1832 if frame.is_evalframe():
1833 return frame
1834 frame = frame.older()
1853 sys.stdout.write('#%i (unable to read python frame information)\n' % self.get_index())
1876 sys.stdout.write(' (unable to read python frame information)\n')
1884 sys.stdout.write(' (not a python frame)\n')
1920 # py-list requires an actual PyEval_EvalFrameEx frame:
1921 frame = Frame.get_selected_bytecode_frame()
1922 if not frame:
1923 print('Unable to locate gdb frame for python bytecode interpreter')
1926 pyop = frame.get_pyop()
1934 print('Unable to read python frame line number')
1973 frame = Frame.get_selected_python_frame()
1974 if not frame:
1975 print('Unable to locate python frame')
1977 while frame:
1979 iter_frame = frame.older()
1981 iter_frame = frame.newer()
1992 frame = iter_frame
1995 print('Unable to find an older python frame')
1997 print('Unable to find a newer python frame')
2001 'Select and print all python stack frame in the same eval loop starting from the one that called this one (if any)'
2013 'Select and print all python stack frame in the same eval loop starting from the one called this one (if any)'
2030 'Display the current python frame and all the frames within its call stack (if any)'
2039 frame = Frame.get_selected_python_frame()
2040 if not frame:
2041 print('Unable to locate python frame')
2044 while frame:
2045 if frame.is_python_frame():
2046 frame.print_summary()
2047 frame = frame.older()
2052 'Display the current python frame and all the frames within its call stack (if any)'
2061 frame = Frame.get_selected_python_frame()
2062 if not frame:
2063 print('Unable to locate python frame')
2067 while frame:
2068 if frame.is_python_frame():
2069 frame.print_traceback()
2070 frame = frame.older()
2086 frame = Frame.get_selected_python_frame()
2087 if not frame:
2088 print('Unable to locate python frame')
2091 pyop_frame = frame.get_pyop()
2120 frame = Frame.get_selected_python_frame()
2121 if not frame:
2122 print('Unable to locate python frame')
2125 pyop_frame = frame.get_pyop()