Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: tools/perf/benchmarks/polymer_load.py

Issue 816353008: [Telemetry] Explicitly define Name() method for all perf benchmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from measurements import polymer_load 5 from measurements import polymer_load
6 import page_sets 6 import page_sets
7 from telemetry import benchmark 7 from telemetry import benchmark
8 8
9 9
10 @benchmark.Enabled('android') 10 @benchmark.Enabled('android')
11 class PolymerLoadPica(benchmark.Benchmark): 11 class PolymerLoadPica(benchmark.Benchmark):
12 """Measures time to polymer-ready for Pica (News Reader).""" 12 """Measures time to polymer-ready for Pica (News Reader)."""
13 test = polymer_load.PolymerLoadMeasurement 13 test = polymer_load.PolymerLoadMeasurement
14 page_set = page_sets.PicaPageSet 14 page_set = page_sets.PicaPageSet
15 15
16 @classmethod
17 def Name(cls):
18 return 'polymer_load.pica'
19
16 20
17 # There is something weird about this test (or a test that precedes it) 21 # There is something weird about this test (or a test that precedes it)
18 # that causes it to fail in telemetry_perf_unittests when it is not run 22 # that causes it to fail in telemetry_perf_unittests when it is not run
19 # as the first of the benchmark_smoke_unittest test cases. 23 # as the first of the benchmark_smoke_unittest test cases.
20 # See crbug.com/428207. 24 # See crbug.com/428207.
21 #@benchmark.Enabled('android') 25 #@benchmark.Enabled('android')
22 @benchmark.Disabled 26 @benchmark.Disabled
23 class PolymerLoadTopeka(benchmark.Benchmark): 27 class PolymerLoadTopeka(benchmark.Benchmark):
24 """Measures time to polymer-ready for Topeka (Quiz App).""" 28 """Measures time to polymer-ready for Topeka (Quiz App)."""
25 test = polymer_load.PolymerLoadMeasurement 29 test = polymer_load.PolymerLoadMeasurement
26 page_set = page_sets.TopekaPageSet 30 page_set = page_sets.TopekaPageSet
31 @classmethod
32 def Name(cls):
33 return 'polymer_load.topeka'
34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698