| |
- telemetry.core.timeline.event.TimelineEvent(__builtin__.object)
-
- Thread
class Thread(telemetry.core.timeline.event.TimelineEvent) |
|
A Thread stores all the trace events collected for a particular
thread. We organize the synchronous slices on a thread by "subrows," where
subrow 0 has all the root slices, subrow 1 those nested 1 deep, and so on.
The asynchronous slices are stored in an AsyncSliceGroup object. |
|
- Method resolution order:
- Thread
- telemetry.core.timeline.event.TimelineEvent
- __builtin__.object
Methods defined here:
- AddAsyncSlice(self, async_slice)
- AddSample(self, category, name, timestamp, args=None)
- AutoCloseOpenSlices(self, max_timestamp=None)
- BeginSlice(self, category, name, timestamp, args=None)
- Opens a new slice for the thread.
Calls to beginSlice and endSlice must be made with
non-monotonically-decreasing timestamps.
* category: Category to which the slice belongs.
* name: Name of the slice to add.
* timestamp: The timetsamp of the slice, in milliseconds.
* args: Arguments associated with
Returns newly opened slice
- EndSlice(self, end_timestamp)
- Ends the last begun slice in this group and pushes it onto the slice
array.
* end_timestamp: Timestamp when the slice ended in milliseconds
returns completed slice.
- IsTimestampValidForBeginOrEnd(self, timestamp)
- PushSlice(self, new_slice)
- UpdateBounds(self)
- __init__(self, process, tid)
Data descriptors defined here:
- async_slices
- open_slice_count
- samples
- slices
Methods inherited from telemetry.core.timeline.event.TimelineEvent:
- GetAllChildrenRecursive(self, include_self=False)
- ShiftTimestampsForward(self, delta_time)
- Shifts start time of event by delta_time and also
recursively shifts child events.
- __repr__(self)
Data descriptors inherited from telemetry.core.timeline.event.TimelineEvent:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- end
- self_time
- Time spent in this function less any time spent in child events.
| |