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

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

Issue 2272993003: [Telemetry] Convert long running user stories to the System Health format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: tools/perf/benchmarks/battor.py
diff --git a/tools/perf/benchmarks/battor.py b/tools/perf/benchmarks/battor.py
index 1cfaf8da98d9e448290d2add060b869cc8897393..2eef41f32009b76401293007b3a840202f132988 100644
--- a/tools/perf/benchmarks/battor.py
+++ b/tools/perf/benchmarks/battor.py
@@ -130,3 +130,34 @@ class BattOrTrivialPages(_BattOrBenchmark):
@classmethod
def Name(cls):
return 'battor.trivial_pages'
+
petrcermak 2016/08/25 09:57:19 nit: there should be 2 blank lines between top-lev
rnephew (Reviews Here) 2016/08/25 15:28:57 Charlies CL at https://codereview.chromium.org/223
+class DesktopBattOrLongRunning(_BattOrBenchmark):
rnephew (Reviews Here) 2016/08/24 17:50:45 If my understanding of how the system_health.memor
petrcermak 2016/08/25 09:57:18 All benchmarks that don't specify |case| or have c
petrcermak 2016/08/25 09:57:18 If for some reason you decide to spin up a separat
+ PLATFORM = 'desktop'
+
+ def CreateStorySet(self, options):
+ return page_sets.SystemHealthStorySet(platform=self.PLATFORM,
+ case='long_running')
+
+ @classmethod
+ def ShouldTearDownStateAfterEachStoryRun(cls):
+ return True
+
+ @classmethod
+ def Name(cls):
+ return 'battor.long_running_%s' % cls.PLATFORM
+
+
+class MobileBattOrLongRunning(_BattOrBenchmark):
+ PLATFORM = 'mobile'
+
+ def CreateStorySet(self, options):
+ return page_sets.SystemHealthStorySet(platform=self.PLATFORM,
+ case='long_running')
+
+ @classmethod
+ def ShouldTearDownStateAfterEachStoryRun(cls):
+ return True
+
+ @classmethod
+ def Name(cls):
+ return 'battor.long_running_%s' % cls.PLATFORM

Powered by Google App Engine
This is Rietveld 408576698