diff options
author | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 23:35:25 +0000 |
---|---|---|
committer | davemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 23:35:25 +0000 |
commit | 7664ab3d9d921bc769977c2921ecb4e5ea0cc793 (patch) | |
tree | ab884002c040253f951d05ef7b3e5033d35d1c99 /chrome/common/chrome_switches.cc | |
parent | 22258c851d500a42113c833ac06d244cf4d4236b (diff) | |
download | chromium_src-7664ab3d9d921bc769977c2921ecb4e5ea0cc793.zip chromium_src-7664ab3d9d921bc769977c2921ecb4e5ea0cc793.tar.gz chromium_src-7664ab3d9d921bc769977c2921ecb4e5ea0cc793.tar.bz2 |
Added command line switches and UI (controlled via a build option)
to make it easier to use the sampling profiler.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6250070
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73374 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_switches.cc')
-rw-r--r-- | chrome/common/chrome_switches.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 032c0df..65f40a8 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -964,6 +964,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"; |