| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 # "blink.console" is used for marking ranges in | 26 # "blink.console" is used for marking ranges in |
| 27 # cache_temperature.MarkTelemetryInternal. | 27 # cache_temperature.MarkTelemetryInternal. |
| 28 cat_filter.AddIncludedCategory('blink.console') | 28 cat_filter.AddIncludedCategory('blink.console') |
| 29 | 29 |
| 30 # "navigation" and "blink.user_timing" are needed to capture core | 30 # "navigation" and "blink.user_timing" are needed to capture core |
| 31 # navigation events. | 31 # navigation events. |
| 32 cat_filter.AddIncludedCategory('navigation') | 32 cat_filter.AddIncludedCategory('navigation') |
| 33 cat_filter.AddIncludedCategory('blink.user_timing') | 33 cat_filter.AddIncludedCategory('blink.user_timing') |
| 34 | 34 |
| 35 # Below categories are needed for first-meaningful-paint computation. | 35 # "loading" is needed for first-meaningful-paint computation. |
| 36 cat_filter.AddDisabledByDefault('disabled-by-default-blink.debug.layout') | |
| 37 cat_filter.AddIncludedCategory('devtools.timeline') | |
| 38 cat_filter.AddIncludedCategory('loading') | 36 cat_filter.AddIncludedCategory('loading') |
| 39 | 37 |
| 40 # "toplevel" category is used to capture TaskQueueManager events | 38 # "toplevel" category is used to capture TaskQueueManager events |
| 41 # necessary to compute time-to-interactive. | 39 # necessary to compute time-to-interactive. |
| 42 cat_filter.AddIncludedCategory('toplevel') | 40 cat_filter.AddIncludedCategory('toplevel') |
| 43 | 41 |
| 44 tbm_options = timeline_based_measurement.Options( | 42 tbm_options = timeline_based_measurement.Options( |
| 45 overhead_level=cat_filter) | 43 overhead_level=cat_filter) |
| 46 tbm_options.SetTimelineBasedMetrics(['loadingMetric']) | 44 tbm_options.SetTimelineBasedMetrics(['loadingMetric']) |
| 47 return tbm_options | 45 return tbm_options |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 set, without running in out-of-process iframes mode.. """ | 208 set, without running in out-of-process iframes mode.. """ |
| 211 page_set = page_sets.OopifBasicPageSet | 209 page_set = page_sets.OopifBasicPageSet |
| 212 | 210 |
| 213 @classmethod | 211 @classmethod |
| 214 def Name(cls): | 212 def Name(cls): |
| 215 return 'page_cycler_v2.basic_oopif' | 213 return 'page_cycler_v2.basic_oopif' |
| 216 | 214 |
| 217 def CreateStorySet(self, options): | 215 def CreateStorySet(self, options): |
| 218 return page_sets.OopifBasicPageSet(cache_temperatures=[ | 216 return page_sets.OopifBasicPageSet(cache_temperatures=[ |
| 219 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) | 217 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) |
| OLD | NEW |