Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(769)

Unified Diff: base/histogram.h

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/field_trial.cc ('k') | base/histogram.cc » ('j') | base/time_format.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/histogram.h
===================================================================
--- base/histogram.h (revision 3954)
+++ base/histogram.h (working copy)
@@ -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 @@
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 @@
};
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.
« no previous file with comments | « base/field_trial.cc ('k') | base/histogram.cc » ('j') | base/time_format.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698