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

Side by Side 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: Define stories explicitly (avoid declarative JSON) Created 4 years, 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from page_sets.system_health import single_page_stories
6
7 from telemetry import story
8
9
10 class _MemorySystemHealthStorySet(story.StorySet):
11 """User stories for the System Health Plan.
12
13 See https://goo.gl/Jek2NL.
14 """
15 PLATFORM = NotImplemented
16
17 def __init__(self):
18 super(_MemorySystemHealthStorySet, self).__init__(
19 archive_data_file=('../data/memory_system_health_%s.json' %
20 self.PLATFORM),
21 cloud_storage_bucket=story.PARTNER_BUCKET)
22 for story_class in single_page_stories.IterAllStoryClasses():
23 if self.PLATFORM not in story_class.SUPPORTED_PLATFORMS:
24 continue
25 self.AddStory(story_class(self))
26
27
28 class DesktopMemorySystemHealthStorySet(_MemorySystemHealthStorySet):
29 """Desktop user stories for Chrome Memory System Health Plan."""
30 PLATFORM = 'desktop'
31
32
33 class MobileMemorySystemHealthStorySet(_MemorySystemHealthStorySet):
34 """Mobile user stories for Chrome Memory System Health Plan."""
35 PLATFORM = 'mobile'
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698