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

Side by Side Diff: tools/perf/page_sets/system_health/system_health_stories.py

Issue 2118293002: Add benchmark that imitates news reading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move stories to system health 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
1 # Copyright 2016 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from page_sets.system_health import single_page_stories 5 from page_sets.system_health import single_page_stories
6 6
petrcermak 2016/07/08 10:04:31 Remove blank line and sort the imports alphabetica
ulan 2016/07/08 10:34:22 Done.
7 from page_sets.system_health import platforms
8
7 from telemetry import story 9 from telemetry import story
8 10
9 11
10 class _SystemHealthStorySet(story.StorySet): 12 class _SystemHealthStorySet(story.StorySet):
11 """User stories for the System Health Plan. 13 """User stories for the System Health Plan.
12 14
13 See https://goo.gl/Jek2NL. 15 See https://goo.gl/Jek2NL.
14 """ 16 """
15 PLATFORM = NotImplemented 17 PLATFORM = NotImplemented
16 18
17 def __init__(self, take_memory_measurement=True): 19 def __init__(self, take_memory_measurement=True):
18 super(_SystemHealthStorySet, self).__init__( 20 super(_SystemHealthStorySet, self).__init__(
19 archive_data_file=('../data/memory_system_health_%s.json' % 21 archive_data_file=('../data/memory_system_health_%s.json' %
20 self.PLATFORM), 22 self.PLATFORM),
21 cloud_storage_bucket=story.PARTNER_BUCKET) 23 cloud_storage_bucket=story.PARTNER_BUCKET)
22 for story_class in single_page_stories.IterAllStoryClasses(): 24 for story_class in single_page_stories.IterAllStoryClasses():
23 if self.PLATFORM not in story_class.SUPPORTED_PLATFORMS: 25 if self.PLATFORM not in story_class.SUPPORTED_PLATFORMS:
24 continue 26 continue
25 self.AddStory(story_class(self, take_memory_measurement)) 27 self.AddStory(story_class(self, take_memory_measurement))
26 28
27 29
28 class DesktopSystemHealthStorySet(_SystemHealthStorySet): 30 class DesktopSystemHealthStorySet(_SystemHealthStorySet):
29 """Desktop user stories for Chrome System Health Plan.""" 31 """Desktop user stories for Chrome System Health Plan."""
30 PLATFORM = 'desktop' 32 PLATFORM = platforms.DESKTOP
31 33
32 34
33 class MobileSystemHealthStorySet(_SystemHealthStorySet): 35 class MobileSystemHealthStorySet(_SystemHealthStorySet):
34 """Mobile user stories for Chrome System Health Plan.""" 36 """Mobile user stories for Chrome System Health Plan."""
35 PLATFORM = 'mobile' 37 PLATFORM = platforms.MOBILE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698