diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-05 02:13:49 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-05 02:13:49 +0000 |
commit | 2670f448c7e692f0c3be8a2bfc01b2445447ae0e (patch) | |
tree | 109b6c80e8d919c1640d9a76857706a3ae67fe6e /base/histogram.h | |
parent | 2ca174c7526fbd544234e59d24d38c7d5422d3cf (diff) | |
download | chromium_src-2670f448c7e692f0c3be8a2bfc01b2445447ae0e.zip chromium_src-2670f448c7e692f0c3be8a2bfc01b2445447ae0e.tar.gz chromium_src-2670f448c7e692f0c3be8a2bfc01b2445447ae0e.tar.bz2 |
Another macro for 100 linear slots
- Mirrors same without UMA
- Current tests sufice
Review URL: http://codereview.chromium.org/20069
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9207 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/histogram.h')
-rw-r--r-- | base/histogram.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/histogram.h b/base/histogram.h index 9860e93..624f80a 100644 --- a/base/histogram.h +++ b/base/histogram.h @@ -54,6 +54,11 @@ counter.Add(sample); \ } while (0) +#define HISTOGRAM_COUNTS_100(name, sample) do { \ + static Histogram counter((name), 1, 100, 50); \ + counter.Add(sample); \ + } while (0) + // For folks that need real specific times, use this, but you'll only get // samples that are in the range (overly large samples are discarded). #define HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) do { \ |