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

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

Issue 2091183002: [PCv2] Re-enable on desktops (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « no previous file | 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 13 matching lines...) Expand all
24 24
25 # Below categories are needed for first-meaningful-paint computation. 25 # Below categories are needed for first-meaningful-paint computation.
26 cat_filter.AddDisabledByDefault('disabled-by-default-blink.debug.layout') 26 cat_filter.AddDisabledByDefault('disabled-by-default-blink.debug.layout')
27 cat_filter.AddIncludedCategory('devtools.timeline') 27 cat_filter.AddIncludedCategory('devtools.timeline')
28 28
29 tbm_options = timeline_based_measurement.Options( 29 tbm_options = timeline_based_measurement.Options(
30 overhead_level=cat_filter) 30 overhead_level=cat_filter)
31 tbm_options.SetTimelineBasedMetric('firstPaintMetric') 31 tbm_options.SetTimelineBasedMetric('firstPaintMetric')
32 return tbm_options 32 return tbm_options
33 33
34 # crbug.com/615178, crbug.com/619254, crbug.com/621473 34 # crbug.com/619254
35 @benchmark.Disabled('win', 'mac', 'linux', 'reference') 35 @benchmark.Disabled('reference')
36 class PageCyclerV2Typical25(_PageCyclerV2): 36 class PageCyclerV2Typical25(_PageCyclerV2):
37 """Page load time benchmark for a 25 typical web pages. 37 """Page load time benchmark for a 25 typical web pages.
38 38
39 Designed to represent typical, not highly optimized or highly popular web 39 Designed to represent typical, not highly optimized or highly popular web
40 sites. Runs against pages recorded in June, 2014. 40 sites. Runs against pages recorded in June, 2014.
41 """ 41 """
42 options = {'pageset_repeat': 2} 42 options = {'pageset_repeat': 2}
43 43
44 @classmethod 44 @classmethod
45 def Name(cls): 45 def Name(cls):
46 return 'page_cycler_v2.typical_25' 46 return 'page_cycler_v2.typical_25'
47 47
48 @classmethod 48 @classmethod
49 def ShouldDisable(cls, possible_browser): # crbug.com/615178 49 def ShouldDisable(cls, possible_browser):
50 if (possible_browser.browser_type == 'reference' and
51 possible_browser.platform.GetOSName() == 'android'):
52 return True
53 # crbug.com/616781 50 # crbug.com/616781
54 if (cls.IsSvelte(possible_browser) or 51 if (cls.IsSvelte(possible_browser) or
55 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X' or 52 possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X' or
56 possible_browser.platform.GetDeviceTypeName() == 'AOSP on BullHead'): 53 possible_browser.platform.GetDeviceTypeName() == 'AOSP on BullHead'):
57 return True 54 return True
58 return False 55 return False
59 56
60 def CreateStorySet(self, options): 57 def CreateStorySet(self, options):
61 return page_sets.Typical25PageSet(run_no_page_interactions=True, 58 return page_sets.Typical25PageSet(run_no_page_interactions=True,
62 cache_temperatures=[ 59 cache_temperatures=[
63 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM]) 60 cache_temperature.PCV1_COLD, cache_temperature.PCV1_WARM])
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698