OLD | NEW |
(Empty) | |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 |
| 5 from core import perf_benchmark |
| 6 from telemetry.timeline import tracing_category_filter |
| 7 from telemetry.web_perf import timeline_based_measurement |
| 8 import page_sets |
| 9 |
| 10 class _PUFBenchmark(perf_benchmark.PerfBenchmark): |
| 11 TRACING_CATEGORIES = [ |
| 12 'benchmark', |
| 13 'blink', |
| 14 'blink.user_timing', |
| 15 'disabled-by-default-blink.debug.layout', |
| 16 'navigation', |
| 17 ] |
| 18 |
| 19 def CreateTimelineBasedMeasurementOptions(self): |
| 20 options = timeline_based_measurement.Options() |
| 21 options.config.SetTracingCategoryFilter( |
| 22 tracing_category_filter.TracingCategoryFilter(','.join( |
| 23 self.TRACING_CATEGORIES))) |
| 24 options.SetTimelineBasedMetric('PUFMetric') |
| 25 return options |
| 26 |
| 27 |
| 28 class PUFTop10k(_PUFBenchmark): |
| 29 page_set = page_sets.Alexa1To10000PageSet |
| 30 |
| 31 @classmethod |
| 32 def Name(cls): |
| 33 return 'puf.top10k' |
OLD | NEW |