Beispiel #1
0
 def CreateTimelineBasedMeasurementOptions(self):
   category_filter = tracing_category_filter.TracingCategoryFilter(
       filter_string='webrtc,webkit.console,blink.console')
   options = timeline_based_measurement.Options(category_filter)
   options.SetTimelineBasedMetrics(
       [webrtc_rendering_timeline.WebRtcRenderingTimelineMetric()])
   return options
Beispiel #2
0
def _GetAllLegacyTimelineBasedMetrics():
    # TODO(nednguyen): use discovery pattern to return all the instances of
    # all TimelineBasedMetrics class in web_perf/metrics/ folder.
    # This cannot be done until crbug.com/460208 is fixed.
    return (smoothness.SmoothnessMetric(), layout.LayoutMetric(),
            blob_timeline.BlobTimelineMetric(),
            indexeddb_timeline.IndexedDBTimelineMetric(),
            webrtc_rendering_timeline.WebRtcRenderingTimelineMetric())
def _GetAllTimelineBasedMetrics():
    # TODO(nednguyen): use discovery pattern to return all the instances of
    # all TimelineBasedMetrics class in web_perf/metrics/ folder.
    # This cannot be done until crbug.com/460208 is fixed.
    return (smoothness.SmoothnessMetric(),
            responsiveness_metric.ResponsivenessMetric(),
            layout.LayoutMetric(), gpu_timeline.GPUTimelineMetric(),
            blob_timeline.BlobTimelineMetric(),
            memory_timeline.MemoryTimelineMetric(),
            text_selection.TextSelectionMetric(),
            indexeddb_timeline.IndexedDBTimelineMetric(),
            webrtc_rendering_timeline.WebRtcRenderingTimelineMetric())