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

Unified Diff: net/disk_cache/histogram_macros.h

Issue 650068: Disk cache: Use TimeTicks instead of Time for some of the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 | « net/disk_cache/eviction.cc ('k') | net/disk_cache/rankings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/histogram_macros.h
===================================================================
--- net/disk_cache/histogram_macros.h (revision 39154)
+++ net/disk_cache/histogram_macros.h (working copy)
@@ -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)
« no previous file with comments | « net/disk_cache/eviction.cc ('k') | net/disk_cache/rankings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698