summaryrefslogtreecommitdiffstats
path: root/base/histogram.h
diff options
context:
space:
mode:
authordsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 20:43:33 +0000
committerdsh@google.com <dsh@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-27 20:43:33 +0000
commite1acf6f902e50222baf99bfb492ecc38a1604975 (patch)
tree503d45705b14be7e2f1ed86c71d6064abbf90fbe /base/histogram.h
parenta2f5993e1ce940e8a8eec900abaeed02e2eee09b (diff)
downloadchromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.zip
chromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.tar.gz
chromium_src-e1acf6f902e50222baf99bfb492ecc38a1604975.tar.bz2
Move Time, TimeDelta and TimeTicks into namespace base.
Review URL: http://codereview.chromium.org/7995 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4022 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/histogram.h')
-rw-r--r--base/histogram.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/base/histogram.h b/base/histogram.h
index a7c1b92..af5f1fd 100644
--- a/base/histogram.h
+++ b/base/histogram.h
@@ -44,8 +44,8 @@
// These macros all use 50 buckets.
#define HISTOGRAM_TIMES(name, sample) do { \
- static Histogram counter((name), TimeDelta::FromMilliseconds(1), \
- TimeDelta::FromSeconds(10), 50); \
+ static Histogram counter((name), base::TimeDelta::FromMilliseconds(1), \
+ base::TimeDelta::FromSeconds(10), 50); \
counter.AddTime(sample); \
} while (0)
@@ -103,16 +103,16 @@
static const int kUmaTargetedHistogramFlag = 0x1;
#define UMA_HISTOGRAM_TIMES(name, sample) do { \
- static Histogram counter((name), TimeDelta::FromMilliseconds(1), \
- TimeDelta::FromSeconds(10), 50); \
+ static Histogram counter((name), base::TimeDelta::FromMilliseconds(1), \
+ base::TimeDelta::FromSeconds(10), 50); \
counter.SetFlags(kUmaTargetedHistogramFlag); \
counter.AddTime(sample); \
} while (0)
// Use this macro when times can routinely be much longer than 10 seconds.
#define UMA_HISTOGRAM_LONG_TIMES(name, sample) do { \
- static Histogram counter((name), TimeDelta::FromMilliseconds(1), \
- TimeDelta::FromHours(1), 50); \
+ static Histogram counter((name), base::TimeDelta::FromMilliseconds(1), \
+ base::TimeDelta::FromHours(1), 50); \
counter.SetFlags(kUmaTargetedHistogramFlag); \
counter.AddTime(sample); \
} while (0)
@@ -191,8 +191,8 @@ class Histogram : public StatsRate {
Histogram(const wchar_t* name, Sample minimum,
Sample maximum, size_t bucket_count);
- Histogram(const wchar_t* name, TimeDelta minimum,
- TimeDelta maximum, size_t bucket_count);
+ Histogram(const wchar_t* name, base::TimeDelta minimum,
+ base::TimeDelta maximum, size_t bucket_count);
virtual ~Histogram();
// Hooks to override stats counter methods. This ensures that we gather all
@@ -330,8 +330,8 @@ class LinearHistogram : public Histogram {
};
LinearHistogram(const wchar_t* name, Sample minimum,
Sample maximum, size_t bucket_count);
- LinearHistogram(const wchar_t* name, TimeDelta minimum,
- TimeDelta maximum, size_t bucket_count);
+ LinearHistogram(const wchar_t* name, base::TimeDelta minimum,
+ base::TimeDelta maximum, size_t bucket_count);
~LinearHistogram() {}
// Store a list of number/text values for use in rendering the histogram.