Пример #1
0
    def CreateCoreTimelineBasedMeasurementOptions(self):
        cat_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter(
            filter_string='rail,toplevel,uma')
        cat_filter.AddIncludedCategory('accessibility')
        # Needed for the metric reported by page.
        cat_filter.AddIncludedCategory('blink.user_timing')
        # Needed for the console error metric.
        cat_filter.AddIncludedCategory('v8.console')

        options = timeline_based_measurement.Options(cat_filter)
        options.config.enable_chrome_trace = True
        options.config.enable_cpu_trace = True
        options.config.chrome_trace_config.EnableUMAHistograms(
            *SYSTEM_HEALTH_BENCHMARK_UMA)
        options.SetTimelineBasedMetrics([
            'accessibilityMetric',
            'consoleErrorMetric',
            'cpuTimeMetric',
            'limitedCpuTimeMetric',
            'reportedByPageMetric',
            'tracingMetric',
            'umaMetric',
            # Unless --experimentatil-tbmv3-metric flag is used, the following tbmv3
            # metrics do nothing.
            'tbmv3:accessibility_metric',
            'tbmv3:cpu_time_metric',
        ])
        loading_metrics_category.AugmentOptionsForLoadingMetrics(options)
        # The EQT metric depends on the same categories as the loading metric.
        options.AddTimelineBasedMetric('expectedQueueingTimeMetric')
        return options
Пример #2
0
    def CreateCoreTimelineBasedMeasurementOptions(self):
        tbm_options = timeline_based_measurement.Options()
        loading_metrics_category.AugmentOptionsForLoadingMetrics(tbm_options)
        # Enable "Memory.GPU.PeakMemoryUsage.PageLoad" so we can measure the GPU
        # memory used throughout the page loading tests. Include "umaMetric" as a
        # timeline so that we can parse this UMA Histogram.
        tbm_options.config.chrome_trace_config.EnableUMAHistograms(
            'Memory.GPU.PeakMemoryUsage.PageLoad')

        # Add "umaMetric" to the timeline based metrics. This does not override
        # those added in loading_metrics_category.AugmentOptionsForLoadingMetrics.
        tbm_options.AddTimelineBasedMetric('umaMetric')
        return tbm_options
Пример #3
0
 def CreateTimelineBasedMeasurementOptions(self):
     options = timeline_based_measurement.Options(
         chrome_trace_category_filter.ChromeTraceCategoryFilter())
     options.config.chrome_trace_config.category_filter.AddFilterString(
         'rail')
     options.config.enable_battor_trace = True
     options.config.enable_chrome_trace = True
     options.config.enable_cpu_trace = True
     options.SetTimelineBasedMetrics(
         ['clockSyncLatencyMetric', 'powerMetric', 'tracingMetric'])
     loading_metrics_category.AugmentOptionsForLoadingMetrics(options)
     # The EQT metric depends on the same categories as the loading metric.
     options.AddTimelineBasedMetric('expectedQueueingTimeMetric')
     return options
Пример #4
0
 def CreateCoreTimelineBasedMeasurementOptions(self):
     cat_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter(
         filter_string='-*,toplevel,rail,disabled-by-default-memory-infra')
     options = timeline_based_measurement.Options(cat_filter)
     options.SetTimelineBasedMetrics([
         'cpuTimeMetric',
         'loadingMetric',
         'memoryMetric',
         'tracingMetric',
     ])
     loading_metrics_category.AugmentOptionsForLoadingMetrics(options)
     # Disable periodic dumps by setting default config.
     options.config.chrome_trace_config.SetMemoryDumpConfig(
         chrome_trace_config.MemoryDumpConfig())
     return options
Пример #5
0
    def CreateCoreTimelineBasedMeasurementOptions(self):
        cat_filter = chrome_trace_category_filter.ChromeTraceCategoryFilter(
            filter_string='rail,toplevel')
        cat_filter.AddIncludedCategory('accessibility')

        options = timeline_based_measurement.Options(cat_filter)
        options.config.enable_chrome_trace = True
        options.config.enable_cpu_trace = True
        options.SetTimelineBasedMetrics([
            'cpuTimeMetric', 'tracingMetric', 'accessibilityMetric',
            'limitedCpuTimeMetric'
        ])
        loading_metrics_category.AugmentOptionsForLoadingMetrics(options)
        # The EQT metric depends on the same categories as the loading metric.
        options.AddTimelineBasedMetric('expectedQueueingTimeMetric')
        return options
Пример #6
0
    def CreateCoreTimelineBasedMeasurementOptions(self):
        tbm_options = timeline_based_measurement.Options()
        loading_metrics_category.AugmentOptionsForLoadingMetrics(tbm_options)
        # Enable "Memory.GPU.PeakMemoryUsage.PageLoad" so we can measure the GPU
        # memory used throughout the page loading tests. Include "umaMetric" as a
        # timeline so that we can parse this UMA Histogram.
        tbm_options.config.chrome_trace_config.EnableUMAHistograms(
            'Memory.GPU.PeakMemoryUsage.PageLoad',
            'PageLoad.PaintTiming.NavigationToLargestContentfulPaint',
            'PageLoad.PaintTiming.NavigationToFirstContentfulPaint',
            'PageLoad.LayoutInstability.CumulativeShiftScore')

        # Add "umaMetric" to the timeline based metrics. This does not override
        # those added in loading_metrics_category.AugmentOptionsForLoadingMetrics.
        tbm_options.AddTimelineBasedMetric('umaMetric')
        return tbm_options
Пример #7
0
 def CreateCoreTimelineBasedMeasurementOptions(self):
     tbm_options = timeline_based_measurement.Options()
     loading_metrics_category.AugmentOptionsForLoadingMetrics(tbm_options)
     return tbm_options