blob: eb5711a4b2198e518ac64dda908731f4a080f93c [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
CLOUD_PATH = 'gs://chome-health-tvdata/datasets/health_study.csv'
OVERALL_PSS = ('memory:{browser}:all_processes:reported_by_os:system_memory'
':proportional_resident_size_avg')
BATTERY = [
'power.typical_10_mobile',
'application_energy_consumption_mwh'
]
STARTUP_BY_BROWSER = {
'chrome': [
'startup.mobile',
'first_contentful_paint_time_avg',
'intent_coldish_bbc'
],
'webview': [
'system_health.webview_startup',
'webview_startup_wall_time_avg',
'load_chrome/load_chrome_blank'
]
}
def IterSystemHealthBots():
yield 'ChromiumPerf/android-go-perf'
yield 'ChromiumPerfFyi/android-go_webview-perf'
def GetBrowserFromBot(bot):
return 'webview' if 'webview' in bot else 'chrome'
def IterTestPaths():
for bot in IterSystemHealthBots():
browser = GetBrowserFromBot(bot)
overall_pss = OVERALL_PSS.format(browser=browser)
for story_group in ('foreground', 'background'):
yield '/'.join([bot, 'memory.top_10_mobile', overall_pss, story_group])
yield '/'.join([bot] + BATTERY)
yield '/'.join([bot] + STARTUP_BY_BROWSER[browser])