| Index: chrome/common/chrome_switches.cc
|
| diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
|
| index 43026f440350832288595b6d57812c1e1ea9e9d7..a6ce9b977d2e4acb02d046a4a98d314a8b693456 100644
|
| --- a/chrome/common/chrome_switches.cc
|
| +++ b/chrome/common/chrome_switches.cc
|
| @@ -967,6 +967,26 @@ const char kProductVersion[] = "product-version";
|
| // Causes the process to run as a profile import subprocess.
|
| const char kProfileImportProcess[] = "profile-import";
|
|
|
| +// Starts the sampling based profiler for the browser process at
|
| +// startup. This will only work if chrome has been built with
|
| +// the gyp variable profiling=1. The output will go to the value
|
| +// of kProfilingFile.
|
| +const char kProfilingAtStart[] = "profiling-at-start";
|
| +
|
| +// Specifies a location for profiling output. This will only work if chrome
|
| +// has been built with the gyp variable profiling=1.
|
| +// {pid} if present will be replaced by the pid of the process.
|
| +// {count} if present will be incremented each time a profile is generated
|
| +// for this process.
|
| +// The default is chrome-profile-{pid}.
|
| +const char kProfilingFile[] = "profiling-file";
|
| +
|
| +// Controls whether profile data is periodically flushed to a file.
|
| +// Normally the data gets written on exit but cases exist where chrome
|
| +// doesn't exit cleanly (especially when using single-process).
|
| +// A time in seconds can be specified.
|
| +const char kProfilingFlush[] = "profiling-flush";
|
| +
|
| // Force proxy auto-detection.
|
| const char kProxyAutoDetect[] = "proxy-auto-detect";
|
|
|
|
|