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

Side by Side Diff: tools/perf/benchmarks/page_cycler_v2.py

Issue 2642723005: [not for commit] Add necessary code to enable per-request CPU benchmarking (Closed)
Patch Set: Created 3 years, 11 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 | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 """The page cycler v2. 5 """The page cycler v2.
6 6
7 For details, see design doc: 7 For details, see design doc:
8 https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0 8 https://docs.google.com/document/d/1EZQX-x3eEphXupiX-Hq7T4Afju5_sIdxPWYetj7ynd0
9 """ 9 """
10 10
(...skipping 10 matching lines...) Expand all
21 21
22 # "blink.console" is used for marking ranges in 22 # "blink.console" is used for marking ranges in
23 # cache_temperature.MarkTelemetryInternal. 23 # cache_temperature.MarkTelemetryInternal.
24 cat_filter.AddIncludedCategory('blink.console') 24 cat_filter.AddIncludedCategory('blink.console')
25 25
26 # "navigation" and "blink.user_timing" are needed to capture core 26 # "navigation" and "blink.user_timing" are needed to capture core
27 # navigation events. 27 # navigation events.
28 cat_filter.AddIncludedCategory('navigation') 28 cat_filter.AddIncludedCategory('navigation')
29 cat_filter.AddIncludedCategory('blink.user_timing') 29 cat_filter.AddIncludedCategory('blink.user_timing')
30 30
31 # "loading" is needed for first-meaningful-paint computation. 31 # "loading" is needed for first-meaningful-paint computation, and for
32 # cpu-bound resource metrics.
32 cat_filter.AddIncludedCategory('loading') 33 cat_filter.AddIncludedCategory('loading')
33 34
34 # "toplevel" category is used to capture TaskQueueManager events 35 # "toplevel" category is used to capture TaskQueueManager events
35 # necessary to compute time-to-interactive. 36 # necessary to compute time-to-interactive.
36 cat_filter.AddIncludedCategory('toplevel') 37 cat_filter.AddIncludedCategory('toplevel')
37 38
38 tbm_options.AddTimelineBasedMetric('loadingMetric') 39 tbm_options.AddTimelineBasedMetric('loadingMetric')
40 tbm_options.AddTimelineBasedMetric('resourceCPUMetric')
39 return tbm_options 41 return tbm_options
40 42
41 43
42 class _PageCyclerV2(perf_benchmark.PerfBenchmark): 44 class _PageCyclerV2(perf_benchmark.PerfBenchmark):
43 options = {'pageset_repeat': 2} 45 options = {'pageset_repeat': 2}
44 46
45 def CreateTimelineBasedMeasurementOptions(self): 47 def CreateTimelineBasedMeasurementOptions(self):
46 tbm_options = timeline_based_measurement.Options() 48 tbm_options = timeline_based_measurement.Options()
47 AugmentOptionsForLoadingMetrics(tbm_options) 49 AugmentOptionsForLoadingMetrics(tbm_options)
48 return tbm_options 50 return tbm_options
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 set, without running in out-of-process iframes mode.. """ 218 set, without running in out-of-process iframes mode.. """
217 page_set = page_sets.OopifBasicPageSet 219 page_set = page_sets.OopifBasicPageSet
218 220
219 @classmethod 221 @classmethod
220 def Name(cls): 222 def Name(cls):
221 return 'page_cycler_v2.basic_oopif' 223 return 'page_cycler_v2.basic_oopif'
222 224
223 def CreateStorySet(self, options): 225 def CreateStorySet(self, options):
224 return page_sets.OopifBasicPageSet(cache_temperatures=[ 226 return page_sets.OopifBasicPageSet(cache_temperatures=[
225 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) 227 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM])
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698