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

Side by Side Diff: tools/perf/measurements/blink_style.py

Issue 1917393002: [tools/perf] Reference legacy_page_test module instead of page_test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « tools/perf/benchmarks/sunspider.py ('k') | tools/perf/measurements/draw_properties.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 collections import defaultdict 5 from collections import defaultdict
6 from itertools import starmap 6 from itertools import starmap
7 from telemetry.core import exceptions 7 from telemetry.core import exceptions
8 from telemetry.core import util 8 from telemetry.core import util
9 from telemetry.page import page_test 9 from telemetry.page import legacy_page_test
10 from telemetry.value import scalar 10 from telemetry.value import scalar
11 11
12 from measurements import timeline_controller 12 from measurements import timeline_controller
13 13
14 14
15 class BlinkStyle(page_test.PageTest): 15 class BlinkStyle(legacy_page_test.LegacyPageTest):
16 16
17 def __init__(self): 17 def __init__(self):
18 super(BlinkStyle, self).__init__() 18 super(BlinkStyle, self).__init__()
19 self._controller = None 19 self._controller = None
20 20
21 def WillNavigateToPage(self, page, tab): 21 def WillNavigateToPage(self, page, tab):
22 self._controller = timeline_controller.TimelineController() 22 self._controller = timeline_controller.TimelineController()
23 self._controller.trace_categories = 'blink_style,blink.console' 23 self._controller.trace_categories = 'blink_style,blink.console'
24 self._controller.SetUp(page, tab) 24 self._controller.SetUp(page, tab)
25 self._controller.Start(tab) 25 self._controller.Start(tab)
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 tokens = sum(event.tokens for event in events) 135 tokens = sum(event.tokens for event in events)
136 length = sum(event.length for event in events) 136 length = sum(event.length for event in events)
137 137
138 results.AddValue( 138 results.AddValue(
139 scalar.ScalarValue(page, ('parse_css_%s' % category), 139 scalar.ScalarValue(page, ('parse_css_%s' % category),
140 'tokens/s', 1000 / (parse_duration / tokens))) 140 'tokens/s', 1000 / (parse_duration / tokens)))
141 141
142 results.AddValue( 142 results.AddValue(
143 scalar.ScalarValue(page, ('tokenize_css_%s' % category), 143 scalar.ScalarValue(page, ('tokenize_css_%s' % category),
144 'char/s', 1000 / (tokenize_duration / length))) 144 'char/s', 1000 / (tokenize_duration / length)))
OLDNEW
« no previous file with comments | « tools/perf/benchmarks/sunspider.py ('k') | tools/perf/measurements/draw_properties.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698