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 | __eq__ |
Compares the instance for equality with an object. |
Method | __hash__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Returns the nicely printable string representation of this instance. |
Method | ancestors |
An iterator to all the ancestors of this frame. |
Method | children |
An iterator over the children frames in the start order. |
Method | descendant |
An iterator over the descendant events sorted by their start order. |
Method | format |
This method gets an html formatting string representation for this class instance. |
Method | function |
The OSSI location corresponding to the function associated with this frame. |
Method | function |
The transition where the function associated with this frame is starting. |
Method | reversed |
An iterator over the children frames in the reversed start order. |
Property | creation |
Property: The transition that lead to the creation of the frame. |
Property | end |
Property: The event ending this frame. |
Property | first |
Property: The first context where this frame exists. |
Property | first |
Property: The first context where this frame exists and is executed (not one of its children). |
Property | last |
Property: The last context where this frame exists. |
Property | parent |
Property: The parent frame of this frame. |
Property | start |
Property: The event starting this frame. |
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 | _data |
Undocumented |
Instance Variable | _end |
Undocumented |
Instance Variable | _first |
Undocumented |
Instance Variable | _first |
Undocumented |
Instance Variable | _last |
Undocumented |
Instance Variable | _rvn |
Undocumented |
Instance Variable | _start |
Undocumented |
Instance Variable | _trace |
Undocumented |
Compares the instance for equality with an object.
- if the object is not a
StackFrame
, will return False.
Parameters | |
other:object | Undocumented |
Returns | |
bool | Undocumented |
Undocumented
Parameters | |
data_DataSource | Undocumented |
trace:_Trace | Undocumented |
rvn_reven_api.StackFrame | Undocumented |
Returns the nicely printable string representation of this instance.
Information
Returns | |
str | Undocumented |
Raises | |
RuntimeError | if the OSSI resource is not available. |
An iterator to all the ancestors of this frame.
Returns | |
_Iterator[ | Undocumented |
An iterator over the children frames in the start order.
Returns | |
_Iterator[ | Undocumented |
An iterator over the descendant events sorted by their start order.
Information
Parameters | |
fetch | Technical parameter indicating how many events should be fetched from the server by query. Modifying this parameter allows to fine-tune performance according to the use-case:
NOTE: Modifying this parameter does not modify the results of the query. |
Returns | |
EventsIterator | Undocumented |
This method gets an html formatting string representation for this class instance.
Information
Returns | |
str | String |
The OSSI location corresponding to the function associated with this frame.
If the call is unknown (before the trace), the location that will be returned is the first location seen where this frame was executed (so the ret from a direct child call).
Returns | |
_Optional[ | Undocumented |
The transition where the function associated with this frame is starting.
If it contains a trampoline it will be the end of the trampoline.
Returns | |
_Optional[ | Undocumented |
An iterator over the children frames in the reversed start order.
Returns | |
_Iterator[ | Undocumented |
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.
Deprecation
This property is deprecated, please use the property start_event
to retrieve information about the start of this frame.
Information
Returns | |
A reven2.trace.Transition if known. Otherwise None |
Property: The first context where this frame exists.
For functions that started prior to the beginning of the trace, this yields the earliest context where this function or one of its children was being executed.
Property: The last context where this frame exists.
For functions that ended after the ending of the trace, this yields the latest context where this function or one of its children was being executed.
Property: The type of the stack frame.
It indicates in which context the frame was created.
Deprecation
This property is deprecated, please use the property start_event
to retrieve information about the start of this frame.
Information
Returns | |
A StackFrameType . |