diff options
author | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 16:52:21 +0000 |
---|---|---|
committer | jar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 16:52:21 +0000 |
commit | 9274524c812a7935e16105a8f6bba6ed01e5ed63 (patch) | |
tree | 0c07fc347321f5f13f9c37bdc3adc1bb43675b1c /base/command_line.h | |
parent | f88ba61a8133ced5acb6d1f5a8df69d149cc42fd (diff) | |
download | chromium_src-9274524c812a7935e16105a8f6bba6ed01e5ed63.zip chromium_src-9274524c812a7935e16105a8f6bba6ed01e5ed63.tar.gz chromium_src-9274524c812a7935e16105a8f6bba6ed01e5ed63.tar.bz2 |
Histogram count of number of command line arguments
This should help us evaluate which users are manually switching on
non-standard options, which in turn may impact stability.
r=huanr
Review URL: http://codereview.chromium.org/126024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/command_line.h')
-rw-r--r-- | base/command_line.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/command_line.h b/base/command_line.h index c895b81..903e9b5 100644 --- a/base/command_line.h +++ b/base/command_line.h @@ -75,6 +75,9 @@ class CommandLine { // the empty string. std::wstring GetSwitchValue(const std::wstring& switch_string) const; + // Get the number of switches in this process. + size_t GetSwitchCount() const { return switches_.size(); } + // Get the remaining arguments to the command. // WARNING: this is incorrect on POSIX; we must do string conversions. std::vector<std::wstring> GetLooseValues() const; |