telemetry.timeline.model | index telemetry/timeline/model.py

`A container for timeline-based events and traces and can handle importing
raw event data from different sources. This model closely resembles that in the
trace_viewer project:
https://code.google.com/p/trace-viewer/`

Modules
`` |  |
telemetry.timeline.async_slice telemetry.timeline.bounds telemetry.timeline.event_container | telemetry.timeline.inspector_importer telemetry.timeline.process telemetry.timeline.slice | telemetry.timeline.surface_flinger_importer telemetry.timeline.tab_id_importer telemetry.timeline.trace_data | telemetry.timeline.trace_event_importer

Classes
`` |  | exceptions.Exception(exceptions.BaseException) MarkerMismatchError MarkerOverlapError telemetry.timeline.event_container.TimelineEventContainer(__builtin__.object) TimelineModel
class MarkerMismatchError(exceptions.Exception)
`` |  | Method resolution order: MarkerMismatchError exceptions.Exception exceptions.BaseException __builtin__.object Methods defined here: __init__(self) Data descriptors defined here: __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __str__(...) `x.__str__() <==> str(x)` __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
class MarkerOverlapError(exceptions.Exception)
`` |  | Method resolution order: MarkerOverlapError exceptions.Exception exceptions.BaseException __builtin__.object Methods defined here: __init__(self) Data descriptors defined here: __weakref__ `list of weak references to the object (if defined)` Data and other attributes inherited from exceptions.Exception: __new__ = <built-in method __new__ of type object> `T.__new__(S, ...) -> a new object with type S, a subtype of T` Methods inherited from exceptions.BaseException: __delattr__(...) `x.__delattr__('name') <==> del x.name` __getattribute__(...) `x.__getattribute__('name') <==> x.name` __getitem__(...) `x.__getitem__(y) <==> x[y]` __getslice__(...) `x.__getslice__(i, j) <==> x[i:j] Use of negative indices is not supported.` __reduce__(...) __repr__(...) `x.__repr__() <==> repr(x)` __setattr__(...) `x.__setattr__('name', value) <==> x.name = value` __setstate__(...) __str__(...) `x.__str__() <==> str(x)` __unicode__(...) Data descriptors inherited from exceptions.BaseException: __dict__ args message
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)`

Functions
`` |  | IsSliceOrAsyncSlice(t)