telemetry.web_perf.metrics.gpu_timeline
index
telemetry/web_perf/metrics/gpu_timeline.py

# Copyright 2015 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
       
collections
telemetry.value.improvement_direction
telemetry.value.list_of_scalar_values
math
telemetry.timeline.model
telemetry.value.scalar
sys
telemetry.web_perf.metrics.timeline_based_metric

 
Classes
       
telemetry.web_perf.metrics.timeline_based_metric.TimelineBasedMetric(__builtin__.object)
GPUTimelineMetric

 
class GPUTimelineMetric(telemetry.web_perf.metrics.timeline_based_metric.TimelineBasedMetric)
    Computes GPU based metrics.
 
 
Method resolution order:
GPUTimelineMetric
telemetry.web_perf.metrics.timeline_based_metric.TimelineBasedMetric
__builtin__.object

Methods defined here:
AddResults(self, model, _, interaction_records, results)
__init__(self)

Methods inherited from telemetry.web_perf.metrics.timeline_based_metric.TimelineBasedMetric:
AddWholeTraceResults(self, model, results)
Computes and adds metrics corresponding to the entire trace.
 
Override this method to compute results that correspond to the whole trace.
 
Args:
  model: An instance of telemetry.timeline.model.TimelineModel.
  results: An instance of page.PageTestResults.
VerifyNonOverlappedRecords(self, interaction_records)
This raises exceptions if interaction_records contain overlapped ranges.

Data descriptors inherited from telemetry.web_perf.metrics.timeline_based_metric.TimelineBasedMetric:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Functions
       
TimelineName(name, source_type, value_type)
Constructs the standard name given in the timeline.
 
Args:
  name: The name of the timeline, for example "total", or "render_compositor".
  source_type: One of "cpu", "gpu" or None. None is only used for total times.
  value_type: the type of value. For example "mean", "stddev"...etc.

 
Data
        DEVICE_FRAME_END_MARKER = ('disabled-by-default-gpu.device', 'SwapBuffer')
SERVICE_FRAME_END_MARKER = ('disabled-by-default-gpu.service', 'SwapBuffer')
TOPLEVEL_DEVICE_CATEGORY = 'disabled-by-default-gpu.device'
TOPLEVEL_GL_CATEGORY = 'gpu_toplevel'
TOPLEVEL_SERVICE_CATEGORY = 'disabled-by-default-gpu.service'
TRACKED_GL_CONTEXT_NAME = {'BrowserCompositor': 'browser_compositor', 'Compositor': 'browser_compositor', 'RenderCompositor': 'render_compositor'}