summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/histogram_macros.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-22 23:14:23 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-22 23:14:23 +0000
commitb36a7bdca1c1ebc66e9b401296c90d1f69ae686c (patch)
tree8af2fd3186046226bf24c262a563f9605c3553f3 /net/disk_cache/histogram_macros.h
parent2c90e027622a681968bba29fba329c982333d791 (diff)
downloadchromium_src-b36a7bdca1c1ebc66e9b401296c90d1f69ae686c.zip
chromium_src-b36a7bdca1c1ebc66e9b401296c90d1f69ae686c.tar.gz
chromium_src-b36a7bdca1c1ebc66e9b401296c90d1f69ae686c.tar.bz2
Disk cache: Use TimeTicks instead of Time for some of the
cache histograms. BUG=14193 TEST=none Review URL: http://codereview.chromium.org/650068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/histogram_macros.h')
-rw-r--r--net/disk_cache/histogram_macros.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/disk_cache/histogram_macros.h b/net/disk_cache/histogram_macros.h
index 17cd345..27610f5 100644
--- a/net/disk_cache/histogram_macros.h
+++ b/net/disk_cache/histogram_macros.h
@@ -17,13 +17,13 @@
// HISTOGRAM_AGE will collect time elapsed since |initial_time|, with a
// granularity of hours and normal values of a few months.
-#define UMA_HISTOGRAM_AGE(name, initial_time)\
+#define UMA_HISTOGRAM_AGE(name, initial_time) \
UMA_HISTOGRAM_COUNTS_10000(name, (Time::Now() - initial_time).InHours())
// HISTOGRAM_AGE_MS will collect time elapsed since |initial_time|, with the
// normal resolution of the UMA_HISTOGRAM_TIMES.
#define UMA_HISTOGRAM_AGE_MS(name, initial_time)\
- UMA_HISTOGRAM_TIMES(name, Time::Now() - initial_time)
+ UMA_HISTOGRAM_TIMES(name, TimeTicks::Now() - initial_time)
#define UMA_HISTOGRAM_CACHE_ERROR(name, sample) \
UMA_HISTOGRAM_ENUMERATION(name, sample, 50)