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

Side by Side Diff: tools/perf/page_sets/image_decoding_cases.py

Issue 1198823004: Update perf page_set to use story_set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 from telemetry import story
4 from telemetry.page import page as page_module 5 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module 6
6 7
7 class ImageDecodingCasesPage(page_module.Page): 8 class ImageDecodingCasesPage(page_module.Page):
8 9
9 def __init__(self, url, page_set): 10 def __init__(self, url, page_set):
10 super(ImageDecodingCasesPage, self).__init__(url=url, page_set=page_set) 11 super(ImageDecodingCasesPage, self).__init__(url=url, page_set=page_set)
11 12
12 def RunPageInteractions(self, action_runner): 13 def RunPageInteractions(self, action_runner):
13 with action_runner.CreateInteraction('DecodeImage'): 14 with action_runner.CreateInteraction('DecodeImage'):
14 action_runner.Wait(5) 15 action_runner.Wait(5)
15 16
16 class ImageDecodingCasesPageSet(page_set_module.PageSet): 17 class ImageDecodingCasesPageSet(story.StorySet):
17 18
18 """ A directed benchmark of accelerated jpeg image decoding performance """ 19 """ A directed benchmark of accelerated jpeg image decoding performance """
19 20
20 def __init__(self): 21 def __init__(self):
21 super(ImageDecodingCasesPageSet, self).__init__() 22 super(ImageDecodingCasesPageSet, self).__init__()
22 23
23 urls_list = [ 24 urls_list = [
24 'file://image_decoding_cases/yuv_decoding.html' 25 'file://image_decoding_cases/yuv_decoding.html'
25 ] 26 ]
26 27
27 for url in urls_list: 28 for url in urls_list:
28 self.AddUserStory(ImageDecodingCasesPage(url, self)) 29 self.AddUserStory(ImageDecodingCasesPage(url, self))
OLDNEW
« no previous file with comments | « tools/perf/page_sets/idle_multi_tab_cases.py ('k') | tools/perf/page_sets/image_decoding_measurement.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698