Chromium Code Reviews| 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 |