Index: tools/perf/page_sets/system_health/system_health_stories.py |
diff --git a/tools/perf/page_sets/system_health/system_health_stories.py b/tools/perf/page_sets/system_health/system_health_stories.py |
index 9679b154ae78daf3e042d756886529be6a6af5f5..414dab98d326002aa5b7c15c087d3314a57152bf 100644 |
--- a/tools/perf/page_sets/system_health/system_health_stories.py |
+++ b/tools/perf/page_sets/system_health/system_health_stories.py |
@@ -31,6 +31,30 @@ class SystemHealthStorySet(story.StorySet): |
self.AddStory(story_class(self, take_memory_measurement)) |
+class DesktopSystemHealthStorySet(SystemHealthStorySet): |
+ """Desktop user stories for the System Health Plan. |
+ |
+ Note: This story set is only intended to be used for recording stories via |
+ tools/perf/record_wpr. If you would like to use it in a benchmark, please use |
+ the generic SystemHealthStorySet class instead (you'll need to override the |
+ CreateStorySet method of your benchmark). |
+ """ |
+ def __init__(self): |
+ super(DesktopSystemHealthStorySet, self).__init__('desktop') |
nednguyen
2016/08/24 17:23:39
nits: explicitly specify take_memory_measurement=F
petrcermak
2016/08/24 17:49:46
Done.
|
+ |
+ |
+class MobileSystemHealthStorySet(SystemHealthStorySet): |
+ """Mobile user stories for the System Health Plan. |
+ |
+ Note: This story set is only intended to be used for recording stories via |
+ tools/perf/record_wpr. If you would like to use it in a benchmark, please use |
+ the generic SystemHealthStorySet class instead (you'll need to override the |
+ CreateStorySet method of your benchmark). |
+ """ |
+ def __init__(self): |
+ super(MobileSystemHealthStorySet, self).__init__('mobile') |
+ |
+ |
def _IterAllSystemHealthStoryClasses(): |
start_dir = os.path.dirname(os.path.abspath(__file__)) |
# Sort the classes by their names so that their order is stable and |