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

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

Issue 2926633002: Explicitly setting story names for all smoothness benchmarks (Closed)
Patch Set: Explicitly setting story names for all smoothness benchmarks Created 3 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.page import page as page_module 4 from telemetry.page import page as page_module
5 from telemetry import story 5 from telemetry import story
6 6
7 class ImageDecodingCasesPage(page_module.Page): 7 class ImageDecodingCasesPage(page_module.Page):
8 8
9 def __init__(self, url, page_set): 9 def __init__(self, url, page_set, name):
10 super(ImageDecodingCasesPage, self).__init__(url=url, page_set=page_set) 10 super(ImageDecodingCasesPage, self).__init__(
11 url=url, page_set=page_set, name=name)
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(story.StorySet): 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__(verify_names=True)
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.AddStory(ImageDecodingCasesPage(url, self)) 29 self.AddStory(ImageDecodingCasesPage(url, self, name='yuv_decoding.html'))
cblume 2017/06/06 20:10:58 The only url in the urls_list is yuv_decoding. Thi
ashleymarie1 2017/06/06 20:35:00 Good point! I update the urls_list to be a list of
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/key_desktop_move_cases.py » ('j') | tools/perf/page_sets/key_desktop_move_cases.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698