diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 08:04:57 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 08:04:57 +0000 |
commit | 9fce5f0576768090f2c3b8f751e6e7c805cc0a6e (patch) | |
tree | e0a6ef725b5bddaac7f7a338a5a9f4cfe360a678 /base/metrics | |
parent | e385ec6ce973b7b07339b9e7fb5c0f60f20618a9 (diff) | |
download | chromium_src-9fce5f0576768090f2c3b8f751e6e7c805cc0a6e.zip chromium_src-9fce5f0576768090f2c3b8f751e6e7c805cc0a6e.tar.gz chromium_src-9fce5f0576768090f2c3b8f751e6e7c805cc0a6e.tar.bz2 |
Until we have sparse histograms, to track error codes, we are using
UMA_HISTOGRAM_ENUMERATION and specify 16000 as the bucket size. Bumped
up kBucketCount_MAX to 2**16.
BUG=74618
TEST=We need to test MemoryMappedFile on windows in the browser to send
histogram data for MemoryMappedFile.CreateFileMapping.
R=jar
Review URL: http://codereview.chromium.org/6592087
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76514 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/metrics')
-rw-r--r-- | base/metrics/histogram.cc | 2 | ||||
-rw-r--r-- | base/metrics/histogram.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/base/metrics/histogram.cc b/base/metrics/histogram.cc index c8d7b5f..1d6f884 100644 --- a/base/metrics/histogram.cc +++ b/base/metrics/histogram.cc @@ -71,7 +71,7 @@ const uint32 Histogram::kCrcTable[256] = {0x0, 0x77073096L, 0xee0e612cL, typedef Histogram::Count Count; // static -const size_t Histogram::kBucketCount_MAX = 10000u; +const size_t Histogram::kBucketCount_MAX = 16384u; scoped_refptr<Histogram> Histogram::FactoryGet(const std::string& name, Sample minimum, Sample maximum, size_t bucket_count, Flags flags) { diff --git a/base/metrics/histogram.h b/base/metrics/histogram.h index d6ec94d..347932a 100644 --- a/base/metrics/histogram.h +++ b/base/metrics/histogram.h @@ -241,7 +241,7 @@ class Histogram : public base::RefCountedThreadSafe<Histogram> { typedef int Sample; // Used for samples (and ranges of samples). typedef int Count; // Used to count samples in a bucket. static const Sample kSampleType_MAX = INT_MAX; - // Initialize maximum number of buckets in histograms as 10,000. + // Initialize maximum number of buckets in histograms as 16,384. static const size_t kBucketCount_MAX; typedef std::vector<Count> Counts; |