telemetry.timeline.counter
index
telemetry/timeline/counter.py

# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

 
Modules
       
telemetry.timeline.event_container

 
Classes
       
__builtin__.object
CounterSample
telemetry.timeline.event_container.TimelineEventContainer(__builtin__.object)
Counter

 
class Counter(telemetry.timeline.event_container.TimelineEventContainer)
    Stores all the samples for a given counter.
 
 
Method resolution order:
Counter
telemetry.timeline.event_container.TimelineEventContainer
__builtin__.object

Methods defined here:
FinalizeImport(self)
IterChildContainers(self)
IterEventsInThisContainer(self, event_type_predicate, event_predicate)
__init__(self, parent, category, name)

Data descriptors defined here:
num_samples
num_series

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)

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)

 
class CounterSample(__builtin__.object)
    # Doesn't inherit from TimelineEvent because its only a temporary wrapper of a
# counter sample into an event. During stable operation, the samples are stored
# a dense array of values rather than in the long-form done by an Event.
 
  Methods defined here:
__init__(self, counter, sample_index)

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)
category
duration
end
name
start
thread_duration
thread_end
thread_start
value