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

Unified Diff: tools/perf/benchmarks/system_health.py

Issue 2013223002: Add WebView startup time benchmark (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/benchmarks/system_health.py
diff --git a/tools/perf/benchmarks/system_health.py b/tools/perf/benchmarks/system_health.py
index 8037c349c72a354688d53825fff3b0c6ed999d76..cd462fa488982b815d68310cd918c1545e7af28e 100644
--- a/tools/perf/benchmarks/system_health.py
+++ b/tools/perf/benchmarks/system_health.py
@@ -46,6 +46,7 @@ class SystemHealthTop25(_SystemHealthBenchmark):
def Name(cls):
return 'system_health.top25'
+
@benchmark.Disabled('android') # crbug.com/601953
@benchmark.Disabled('all') # crbug.com/613050
class SystemHealthKeyMobileSites(_SystemHealthBenchmark):
@@ -88,6 +89,26 @@ class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark):
return not _IGNORED_STATS_RE.search(value.name)
+@benchmark.Enabled('android')
Zhen Wang 2016/06/08 22:29:56 This enables this benchmark on all android bots. D
+class WebviewStartupSystemHealthBenchmark(_SystemHealthBenchmark):
+ """Benchmark that measures how long WebView takes to start up
+ and load a blank page.
Zhen Wang 2016/06/08 22:29:56 This should be a 1-line description. And then put
+ """
+ page_set = page_sets.BlankPageSet
+
+ def CreateTimelineBasedMeasurementOptions(self):
+ options = timeline_based_measurement.Options()
+ options.SetTimelineBasedMetric('webviewStartupMetric')
+ options.config.enable_atrace_trace = True
+ options.config.enable_chrome_trace = False
Zhen Wang 2016/06/08 22:29:56 Do we want to get atrace and chrome trace at the s
alexandermont 2016/06/08 22:54:03 Not in this benchmark. This benchmark just needs t
+ options.config.atrace_config.app_name = 'org.chromium.webview_shell'
+ return options
+
+ @classmethod
+ def Name(cls):
+ return 'system_health.webview_startup'
+
+
class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark):
"""Desktop Chrome Memory System Health Benchmark."""
page_set = page_sets.DesktopMemorySystemHealthStorySet
« 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