class documentation
class EventsIterator(object):
Iterator over stack events.
Warnings
Must not be directly constructed but retrieved through the StackFrame.descendant_events
method.
Method | __del__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __iter__ |
Undocumented |
Method | __next__ |
Undocumented |
Method | __repr__ |
Returns the "official" string representation of this instance. |
Method | __str__ |
Returns the nicely printable string representation of this instance. |
Method | peek |
Peeks the next event in the iterator, without advancing the iterator. |
Method | skip |
Skips the remaining events of the current frame. |
Instance Variable | _current |
Undocumented |
Instance Variable | _data |
Undocumented |
Instance Variable | _fetch |
Undocumented |
Instance Variable | _next |
Undocumented |
Instance Variable | _rvn |
Undocumented |
Instance Variable | _trace |
Undocumented |
def __init__(self, data_source, trace, rvn_events_iterator_handle, fetch_count):
Undocumented
Parameters | |
data_DataSource | Undocumented |
trace:_Trace | Undocumented |
rvnint | Undocumented |
fetchint | Undocumented |
def __next__(self):
Undocumented
Returns | |
_Union[ | Undocumented |
def __repr__(self):
Returns the "official" string representation of this instance.
Returns | |
str | Undocumented |
def __str__(self):
Returns the nicely printable string representation of this instance.
Returns | |
str | Undocumented |
def peek(self):
Peeks the next event in the iterator, without advancing the iterator.
Returns None if calling next would result in StopIteration being thrown.
Returns | |
_Union[ | Undocumented |
def skip_children(self):
Skips the remaining events of the current frame.
This call only works if the iterator just returned a FrameStart
, otherwise raises a RuntimeError.
The next call to next will return the FrameEnd
of this frame, or raise StopIteration if it is not in the trace.