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

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..f8f07688a94f89584d002c84fa7203bb925c5e4e 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):
@@ -107,3 +108,26 @@ class MobileMemorySystemHealth(_MemorySystemHealthBenchmark):
return possible_browser.platform.GetDeviceTypeName() == 'Desktop' or (
possible_browser.browser_type == 'reference' and
possible_browser.platform.GetDeviceTypeName() == 'Nexus 5X')
+
+@benchmark.Enabled('android-webview')
+class WebviewStartupSystemHealthBenchmark(perf_benchmark.PerfBenchmark):
+ """Webview startup time benchmark
+
+ Benchmark that measures how long WebView takes to start up
+ and load a blank page. Since thie metric only requires the trace
+ markers recorded in atrace, Chrome tracing is not enabled for this
+ benchmark.
+ """
+ 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
+ options.config.atrace_config.app_name = 'org.chromium.webview_shell'
+ return options
+
+ @classmethod
+ def Name(cls):
+ return 'system_health.webview_startup'
« 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