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

Unified Diff: tools/perf/page_sets/system_health/system_health_stories.py

Issue 2276943002: [system-health] Add support for recording stories directly through story set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicit take_memory_measurement=False 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
« no previous file with comments | « no previous file | tools/perf/page_sets/system_health/system_health_story.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..10933b4690362ef0eee283e271ee32c033e102b9 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,32 @@ 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', take_memory_measurement=False)
+
+
+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', take_memory_measurement=False)
+
+
def _IterAllSystemHealthStoryClasses():
start_dir = os.path.dirname(os.path.abspath(__file__))
# Sort the classes by their names so that their order is stable and
« no previous file with comments | « no previous file | tools/perf/page_sets/system_health/system_health_story.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698