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

Unified Diff: tools/perf/benchmarks/usecounter.py

Issue 2572003003: NOT FOR SUBMIT: use counters for jdm@
Patch Set: Merge branch 'jdm-usecounters' into jdm-merge Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | tools/perf/measurements/usecounter.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/usecounter.py
diff --git a/tools/perf/benchmarks/usecounter.py b/tools/perf/benchmarks/usecounter.py
new file mode 100644
index 0000000000000000000000000000000000000000..09ae13e865892912834466004ea2302155ea0fc8
--- /dev/null
+++ b/tools/perf/benchmarks/usecounter.py
@@ -0,0 +1,56 @@
+# 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 ct_benchmarks_util
+from measurements import usecounter
+import page_sets
+
+class UseCounterTop10(perf_benchmark.PerfBenchmark):
+ page_set = page_sets.Top10PageSet
+ test = usecounter.UseCounter
+ @classmethod
+ def Name(cls):
+ return 'usecounter.top10'
+
+class UseCounterTopDesktop(perf_benchmark.PerfBenchmark):
+ page_set = page_sets.Top2012Q3PageSet
+ test = usecounter.UseCounter
+ @classmethod
+ def Name(cls):
+ return 'usecounter.top_desktop'
+
+class UseCounterTop25(perf_benchmark.PerfBenchmark):
+ page_set = page_sets.Top25PageSet
+ test = usecounter.UseCounter
+ @classmethod
+ def Name(cls):
+ return 'usecounter.top25'
+
+class UseCounterTop10k(perf_benchmark.PerfBenchmark):
+ page_set = page_sets.Alexa1To10000PageSet
+ test = usecounter.UseCounter
+ @classmethod
+ def Name(cls):
+ return 'usecounter.top10k'
+
+class UseCounterCT(perf_benchmark.PerfBenchmark):
+ """Measure use counters in cluster telemetry"""
+ test = usecounter.UseCounter
+ @classmethod
+ def Name(cls):
+ return 'usecounter_ct'
+
+ @classmethod
+ def AddBenchmarkCommandLineArgs(cls, parser):
+ ct_benchmarks_util.AddBenchmarkCommandLineArgs(parser)
+
+ @classmethod
+ def ProcessCommandLineArgs(cls, parser, args):
+ ct_benchmarks_util.ValidateCommandLineArgs(parser, args)
+
+ def CreateStorySet(self, options):
+ return page_sets.CTPageSet(
+ options.urls_list, options.user_agent, options.archive_data_file)
« no previous file with comments | « tools/metrics/histograms/histograms.xml ('k') | tools/perf/measurements/usecounter.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698