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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "mojo/runner/switches.h" 5 #include "mojo/runner/switches.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 22 matching lines...) Expand all
33 // --force-in-process=mojo:native_viewport_service,mojo:network_service 33 // --force-in-process=mojo:native_viewport_service,mojo:network_service
34 const char kForceInProcess[] = "force-in-process"; 34 const char kForceInProcess[] = "force-in-process";
35 35
36 // Print the usage message and exit. 36 // Print the usage message and exit.
37 const char kHelp[] = "help"; 37 const char kHelp[] = "help";
38 38
39 // Specify origin to map to base url. See url_resolver.cc for details. 39 // Specify origin to map to base url. See url_resolver.cc for details.
40 // Can be used multiple times. 40 // Can be used multiple times.
41 const char kMapOrigin[] = "map-origin"; 41 const char kMapOrigin[] = "map-origin";
42 42
43 // Specifies if the |StatsCollectionController| needs to be bound in html pages.
44 // This binding happens on per-frame basis and hence can potentially be a
45 // performance bottleneck. One should only enable it when running a test that
46 // needs to access the provided statistics.
47 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.
48
43 // Starts tracing when the shell starts up, saving a trace file on disk after 5 49 // Starts tracing when the shell starts up, saving a trace file on disk after 5
44 // seconds or when the shell exits. 50 // seconds or when the shell exits.
45 const char kTraceStartup[] = "trace-startup"; 51 const char kTraceStartup[] = "trace-startup";
46 52
47 // Specifies a set of mappings to apply when resolving URLs. The value is a set 53 // Specifies a set of mappings to apply when resolving URLs. The value is a set
48 // of comma-separated mappings, where each mapping consists of a pair of URLs 54 // of comma-separated mappings, where each mapping consists of a pair of URLs
49 // giving the to/from URLs to map. For example, 'a=b,c=d' contains two mappings, 55 // giving the to/from URLs to map. For example, 'a=b,c=d' contains two mappings,
50 // the first maps 'a' to 'b' and the second 'c' to 'd'. 56 // the first maps 'a' to 'b' and the second 'c' to 'd'.
51 const char kURLMappings[] = "url-mappings"; 57 const char kURLMappings[] = "url-mappings";
52 58
53 // When this is set, we create a temporary user data dir for the process, and 59 // When this is set, we create a temporary user data dir for the process, and
54 // add a flag so kUserDataDir points to it. 60 // add a flag so kUserDataDir points to it.
55 const char kUseTemporaryUserDataDir[] = "use-temporary-user-data-dir"; 61 const char kUseTemporaryUserDataDir[] = "use-temporary-user-data-dir";
56 62
57 // Specifies the user data directory. This is the one directory which stores 63 // Specifies the user data directory. This is the one directory which stores
58 // all persistent data. 64 // all persistent data.
59 const char kUserDataDir[] = "user-data-dir"; 65 const char kUserDataDir[] = "user-data-dir";
60 66
61 } // namespace switches 67 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698