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

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

Issue 2092163002: [system-health] Generalize loading stories to single-page stories (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase & address comments Created 4 years, 6 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 | « tools/perf/page_sets/system_health/single_page_stories.py ('k') | no next file » | 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
new file mode 100644
index 0000000000000000000000000000000000000000..1defe24feb19d85d13811aff07076b2d1e1e228d
--- /dev/null
+++ b/tools/perf/page_sets/system_health/system_health_stories.py
@@ -0,0 +1,35 @@
+# 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 page_sets.system_health import single_page_stories
+
+from telemetry import story
+
+
+class _SystemHealthStorySet(story.StorySet):
+ """User stories for the System Health Plan.
+
+ See https://goo.gl/Jek2NL.
+ """
+ PLATFORM = NotImplemented
+
+ def __init__(self, take_memory_measurement=True):
+ super(_SystemHealthStorySet, self).__init__(
+ archive_data_file=('../data/memory_system_health_%s.json' %
+ self.PLATFORM),
+ cloud_storage_bucket=story.PARTNER_BUCKET)
+ for story_class in single_page_stories.IterAllStoryClasses():
+ if self.PLATFORM not in story_class.SUPPORTED_PLATFORMS:
+ continue
+ self.AddStory(story_class(self, take_memory_measurement))
+
+
+class DesktopSystemHealthStorySet(_SystemHealthStorySet):
+ """Desktop user stories for Chrome System Health Plan."""
+ PLATFORM = 'desktop'
+
+
+class MobileSystemHealthStorySet(_SystemHealthStorySet):
+ """Mobile user stories for Chrome System Health Plan."""
+ PLATFORM = 'mobile'
« no previous file with comments | « tools/perf/page_sets/system_health/single_page_stories.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698