| Index: tools/perf/benchmarks/loading.py
|
| diff --git a/tools/perf/benchmarks/loading.py b/tools/perf/benchmarks/loading.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f8f2f09bfa2509cb243f6914f6fba01de43fd6a3
|
| --- /dev/null
|
| +++ b/tools/perf/benchmarks/loading.py
|
| @@ -0,0 +1,28 @@
|
| +# Copyright 2016 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.
|
| +
|
| +from core import perf_benchmark
|
| +import page_sets
|
| +
|
| +from benchmarks import page_cycler_v2
|
| +from telemetry import benchmark
|
| +from telemetry.page import cache_temperature
|
| +
|
| +
|
| +@benchmark.Enabled('android')
|
| +class LoadingMobile(perf_benchmark.PerfBenchmark):
|
| + """ A benchmark measuring loading performance of mobile sites. """
|
| +
|
| + options = {'pageset_repeat': 2}
|
| +
|
| + def CreateTimelineBasedMeasurementOptions(self):
|
| + return page_cycler_v2.TimelineBasedMeasurementOptionsForLoadingMetric()
|
| +
|
| + @classmethod
|
| + def Name(cls):
|
| + return 'loading.mobile'
|
| +
|
| + def CreateStorySet(self, options):
|
| + return page_sets.LoadingMobileStorySet(cache_temperatures=[
|
| + cache_temperature.ANY])
|
|
|