diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-16 05:52:19 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-16 05:52:19 +0000 |
commit | a55231c852bff057858ccad7829ab307d083bb15 (patch) | |
tree | 972490e26ecea10f0608427027e8116609d2e58c /base/metrics | |
parent | b9cf83010f0f17020f9a93769ea2bce8f3966166 (diff) | |
download | chromium_src-a55231c852bff057858ccad7829ab307d083bb15.zip chromium_src-a55231c852bff057858ccad7829ab307d083bb15.tar.gz chromium_src-a55231c852bff057858ccad7829ab307d083bb15.tar.bz2 |
Revert 78333 - Removed "static" in histogram macros. Checking in to
see the performance impact.
Will revert as soon as performance tests.
BUG=76092
TEST=histogram unit tests
TBR=jar
Review URL: http://codereview.chromium.org/6673074
Review URL: http://codereview.chromium.org/6672037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78334 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/metrics')
-rw-r--r-- | base/metrics/histogram.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/base/metrics/histogram.h b/base/metrics/histogram.h index ebe174c..347932a 100644 --- a/base/metrics/histogram.h +++ b/base/metrics/histogram.h @@ -65,7 +65,7 @@ class Lock; name, sample, 1, 10000, 50) #define HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::Histogram::FactoryGet(name, min, max, bucket_count, \ base::Histogram::kNoFlags); \ DCHECK_EQ(name, counter->histogram_name()); \ @@ -78,7 +78,7 @@ class Lock; // For folks that need real specific times, use this to select a precise range // of times you want plotted, and the number of buckets you want used. #define HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \ base::Histogram::kNoFlags); \ DCHECK_EQ(name, counter->histogram_name()); \ @@ -87,7 +87,7 @@ class Lock; // DO NOT USE THIS. It is being phased out, in favor of HISTOGRAM_CUSTOM_TIMES. #define HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \ base::Histogram::kNoFlags); \ DCHECK_EQ(name, counter->histogram_name()); \ @@ -98,7 +98,7 @@ class Lock; // less than boundary_value. #define HISTOGRAM_ENUMERATION(name, sample, boundary_value) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::LinearHistogram::FactoryGet(name, 1, boundary_value, \ boundary_value + 1, \ base::Histogram::kNoFlags); \ @@ -107,7 +107,7 @@ class Lock; } while (0) #define HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::CustomHistogram::FactoryGet(name, custom_ranges, \ base::Histogram::kNoFlags); \ DCHECK_EQ(name, counter->histogram_name()); \ @@ -171,7 +171,7 @@ class Lock; base::TimeDelta::FromHours(1), 50) #define UMA_HISTOGRAM_CUSTOM_TIMES(name, sample, min, max, bucket_count) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \ base::Histogram::kUmaTargetedHistogramFlag); \ DCHECK_EQ(name, counter->histogram_name()); \ @@ -180,7 +180,7 @@ class Lock; // DO NOT USE THIS. It is being phased out, in favor of HISTOGRAM_CUSTOM_TIMES. #define UMA_HISTOGRAM_CLIPPED_TIMES(name, sample, min, max, bucket_count) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::Histogram::FactoryTimeGet(name, min, max, bucket_count, \ base::Histogram::kUmaTargetedHistogramFlag); \ DCHECK_EQ(name, counter->histogram_name()); \ @@ -197,7 +197,7 @@ class Lock; name, sample, 1, 10000, 50) #define UMA_HISTOGRAM_CUSTOM_COUNTS(name, sample, min, max, bucket_count) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::Histogram::FactoryGet(name, min, max, bucket_count, \ base::Histogram::kUmaTargetedHistogramFlag); \ DCHECK_EQ(name, counter->histogram_name()); \ @@ -214,7 +214,7 @@ class Lock; UMA_HISTOGRAM_ENUMERATION(name, under_one_hundred, 101) #define UMA_HISTOGRAM_ENUMERATION(name, sample, boundary_value) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::LinearHistogram::FactoryGet(name, 1, boundary_value, \ boundary_value + 1, base::Histogram::kUmaTargetedHistogramFlag); \ DCHECK_EQ(name, counter->histogram_name()); \ @@ -222,7 +222,7 @@ class Lock; } while (0) #define UMA_HISTOGRAM_CUSTOM_ENUMERATION(name, sample, custom_ranges) do { \ - scoped_refptr<base::Histogram> counter = \ + static scoped_refptr<base::Histogram> counter = \ base::CustomHistogram::FactoryGet(name, custom_ranges, \ base::Histogram::kUmaTargetedHistogramFlag); \ DCHECK_EQ(name, counter->histogram_name()); \ |