_op_stack
Modified from https://gist.github.com/crusaderky/cf0575cfeeee8faa1bb1b3480bc4a87a, to remove all feature besides getting items from the top of the stack.
Frame
Bases: Structure
ctypes Structure (https://docs.python.org/3/library/ctypes.html#structures-and-unions) for a Python frame object, so we can access the top of the stack.
Source code in lineapy/system_tracing/_op_stack.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
|
OpStack
Only support negative access
Source code in lineapy/system_tracing/_op_stack.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|