| |
- exceptions.Exception(exceptions.BaseException)
-
- MarkerMismatchError
- MarkerOverlapError
- telemetry.timeline.event_container.TimelineEventContainer(__builtin__.object)
-
- TimelineModel
class TimelineModel(telemetry.timeline.event_container.TimelineEventContainer) |
| |
- Method resolution order:
- TimelineModel
- telemetry.timeline.event_container.TimelineEventContainer
- __builtin__.object
Methods defined here:
- AddMappingFromTabIdToRendererThread(self, tab_id, renderer_thread)
- FinalizeImport(self, shift_world_to_zero=False, importers=None)
- FindTimelineMarkers(self, timeline_marker_names)
- Find the timeline events with the given names.
If the number and order of events found does not match the names,
raise an error.
- GetAllProcesses(self)
- GetAllThreads(self)
- GetOrCreateProcess(self, pid)
- GetRendererProcessFromTabId(self, tab_id)
- GetRendererThreadFromTabId(self, tab_id)
- ImportTraces(self, trace_data, shift_world_to_zero=True)
- Populates the model with the provided trace data.
trace_data must be an instance of TraceData.
Passing shift_world_to_zero=True causes the events to be shifted such that
the first event starts at time 0.
- IterChildContainers(self)
- IterGlobalMemoryDumps(self)
- Iterate over the memory dump events of this model.
- SetGlobalMemoryDumps(self, global_memory_dumps)
- Populates the model with a sequence of GlobalMemoryDump objects.
- ShiftWorldToZero(self)
- UpdateBounds(self)
- __init__(self, trace_data=None, shift_world_to_zero=True)
- Initializes a TimelineModel.
Args:
trace_data: trace_data.TraceData containing events to import
shift_world_to_zero: If true, the events will be shifted such that the
first event starts at time 0.
Data descriptors defined here:
- bounds
- browser_process
- gpu_process
- processes
- surface_flinger_process
Methods inherited from telemetry.timeline.event_container.TimelineEventContainer:
- GetAllEvents(self, recursive=True)
- # List versions. These should always be simple expressions that list() on
# an underlying iter method.
- GetAllEventsOfName(self, name, recursive=True)
- GetAllToplevelSlicesOfName(self, name, recursive=True)
- IterAllAsyncSlicesOfName(self, name, recursive=True)
- IterAllAsyncSlicesStartsWithName(self, name, recursive=True)
- IterAllEvents(self, recursive=True, event_type_predicate=<function <lambda>>, event_predicate=<function <lambda>>)
- Iterates all events in this container, pre-filtered by two predicates.
Only events with a type matching event_type_predicate AND matching event
event_predicate will be yielded.
event_type_predicate is given an actual type object, e.g.:
event_type_predicate(slice_module.Slice)
event_predicate is given actual events:
event_predicate(thread.slices[7])
- IterAllEventsOfName(self, name, recursive=True)
- # Helper functions for finding common kinds of events. Must always take an
# optinal recurisve parameter and be implemented in terms fo IterAllEvents.
- IterAllFlowEvents(self, recursive=True)
- IterAllSlices(self, recursive=True)
- IterAllSlicesInRange(self, start, end, recursive=True)
- IterAllSlicesOfName(self, name, recursive=True)
- IterAllToplevelSlicesOfName(self, name, recursive=True)
- IterEventsInThisContainer(self, event_type_predicate, event_predicate)
- Iterates all the TimelineEvents in this container.
Only events with a type matching event_type_predicate AND matching event
event_predicate will be yielded.
event_type_predicate is given an actual type object, e.g.:
event_type_predicate(slice_module.Slice)
event_predicate is given actual events:
event_predicate(thread.slices[7])
DO NOT ASSUME that the event_type_predicate will be called for every event
found. The relative calling order of the two is left up to the implementer
of the method.
Static methods inherited from telemetry.timeline.event_container.TimelineEventContainer:
- IsAsyncSlice(t)
Data descriptors inherited from telemetry.timeline.event_container.TimelineEventContainer:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |