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

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 598ff82909401a4a9cc4b2a624cb84567c069a48..9997a946b39f86aa1f4100a5908d7e5b04c9dfb2 100644
--- a/tools/perf/benchmarks/system_health.py
+++ b/tools/perf/benchmarks/system_health.py
@@ -38,8 +38,10 @@ 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):
page_set = page_sets.KeyMobileSitesPageSet
@@ -73,6 +75,24 @@ class _MemorySystemHealthBenchmark(perf_benchmark.PerfBenchmark):
def Name(cls):
return 'system_health.memory_%s' % cls.page_set.PLATFORM
+
+@benchmark.Enabled('android')
+class WebviewStartupSystemHealthBenchmark(_SystemHealthBenchmark):
+ """Chrome Webview Startup Time system health Benchmark. """
charliea (OOO until 10-5) 2016/06/06 19:52:53 nit: system health should be capitalized (like abo
charliea (OOO until 10-5) 2016/06/06 19:52:53 nit: I think that we want to add more context to t
charliea (OOO until 10-5) 2016/06/06 19:52:53 nit: delete trailing space
alexandermont 2016/06/06 23:30:16 Done
+ page_set = page_sets.BlankPageSet
+ def CreateTimelineBasedMeasurementOptions(self):
+ options = timeline_based_measurement.Options(
+ tracing_category_filter.TracingCategoryFilter())
+ options.SetTimelineBasedMetric('webviewStartupMetric')
+ options.config.enable_atrace_trace = True
+ options.config.enable_chrome_trace = False
+ options.config.atrace_app_name = 'org.chromium.webview_shell'
+ return options
+
+ @classmethod
+ def Name(cls):
+ return 'system_health.webview_startup'
+
# https://github.com/catapult-project/catapult/issues/2340
@benchmark.Disabled('all')
class DesktopMemorySystemHealth(_MemorySystemHealthBenchmark):
« 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