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

Unified Diff: mojo/runner/switches.cc

Issue 1278673002: Add stats collection for telemetry startup.warm.blank_page test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cache and reuse a single mojo:tracing connection in mojo:html_viewer. Created 5 years, 4 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
Index: mojo/runner/switches.cc
diff --git a/mojo/runner/switches.cc b/mojo/runner/switches.cc
index 2855d3cae87b409ea80d2e6ead7cd4e91f8d73e3..52e8fd5912687481530d54fb1a6ea2337ce56a67 100644
--- a/mojo/runner/switches.cc
+++ b/mojo/runner/switches.cc
@@ -40,6 +40,12 @@ const char kHelp[] = "help";
// Can be used multiple times.
const char kMapOrigin[] = "map-origin";
+// Specifies if the |StatsCollectionController| needs to be bound in html pages.
+// This binding happens on per-frame basis and hence can potentially be a
+// performance bottleneck. One should only enable it when running a test that
+// needs to access the provided statistics.
+const char kStatsCollectionController[] = "enable-stats-collection-bindings";
yzshen1 2015/08/13 15:59:12 nit: Variable name should match the value.
msw 2015/08/14 23:20:35 Done.
+
// Starts tracing when the shell starts up, saving a trace file on disk after 5
// seconds or when the shell exits.
const char kTraceStartup[] = "trace-startup";

Powered by Google App Engine
This is Rietveld 408576698