telemetry.core.timeline.model
index
telemetry/core/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.core.timeline.bounds
telemetry.core.browser
telemetry.core.timeline.empty_timeline_data_importer
telemetry.core.timeline.inspector_importer
telemetry.core.timeline.trace_event_importer
telemetry.core.timeline.process
weakref
telemetry.core.web_contents

 
Classes
       
__builtin__.object
TimelineModel
exceptions.Exception(exceptions.BaseException)
MarkerMismatchError
MarkerOverlapError

 
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(__builtin__.object)
     Methods defined here:
AddCoreObjectToContainerMapping(self, core_object, container)
Add a mapping from a core object to a timeline container.
 
Used for example to map a Tab to its renderer process in the timeline model.
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.
GetAllContainers(self)
GetAllEvents(self)
GetAllEventsOfName(self, name, only_root_events=False)
GetAllProcesses(self)
GetAllThreads(self)
GetEventOfName(self, name, only_root_events=False, fail_if_more_than_one=False)
GetOrCreateProcess(self, pid)
GetRendererProcessFromTab(self, tab)
GetRendererThreadFromTab(self, tab)
ImportTraces(self, timeline_data, shift_world_to_zero=True)
IterAllEvents(self)
ShiftWorldToZero(self)
UpdateBounds(self)
__init__(self, timeline_data=None, shift_world_to_zero=True)
Initializes a TimelineModel. timeline_data can be a single TimelineData
object, a list of TimelineData objects, or None. If timeline_data is not
None, all events from it will be imported into the model. The events will
be shifted such that the first event starts at time 0, if
shift_world_to_zero is True.

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
bounds
browser_process
processes
thread_time_bounds