class StackFrame(object):
Representation of a part (frame) of a stack.
Warnings
Must not be directly constructed but retrieved through the `Stack.frames` property.
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Returns the nicely printable string representation of this instance. |
Method | format |
This method gets an html formatting string representation for this class instance. |
Property | creation |
Property: The transition that lead to the creation of the frame. |
Property | first |
Property: The first context refers to the context where the frame is first seen in the trace on top of the active stack. |
Property | type |
Property: The type of the stack frame. |
Method | _repr |
Representation used by Jupyter Notebook when an instance of this class is displayed in a cell. |
Instance Variable | _creation |
Undocumented |
Instance Variable | _first |
Undocumented |
Instance Variable | _type |
Undocumented |
Returns the nicely printable string representation of this instance.
Information
Returns | |
str | Undocumented |
Raises | |
RuntimeError | if the OSSI resource is not available. |
This method gets an html formatting string representation for this class instance.
Information
Returns | |
String |
creation_transition =
Property: The transition that lead to the creation of the frame.
Sometimes this transition is unknown because e.g. the frame was created before the beginning of the trace (Unknown frame) or its stack was manipulated (Damaged frame). In these cases, None will be returned.
Note
The context after the creation_transition
is always the first_context
of this frame.
Information
Returns | |
A reven2.trace.Transition if known. Otherwise None |
first_context =
Property: The first context refers to the context where the frame is first seen in the trace on top of the active stack.
Note
While the transition before the first_context
will generally be the creation_transition
of this frame, sometimes it is not the case because e.g. the frame was created before the beginning of the trace (Unknown frame), or its stack was manipulated (Damaged frame). In that case, the transition before the first_context
will typically be a return to this already existing frame.
Information
Returns | |
A reven2.trace.Context . |
type =
Property: The type of the stack frame.
It indicates in which context the frame was created.
Information
Returns | |
A StackFrameType . |