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

Unified Diff: chrome/browser/mac/mac_startup_profiler.h

Issue 1425263003: Use TimeTicks as much as possible in startup_metric_utils. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adapt mojo as well + nit Created 5 years, 1 month 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
Index: chrome/browser/mac/mac_startup_profiler.h
diff --git a/chrome/browser/mac/mac_startup_profiler.h b/chrome/browser/mac/mac_startup_profiler.h
index 05dcf6cc245e77641153213318fcc7f2d39b5b5e..a91c98f0275dbc6268b318f59731f576ab74b828 100644
--- a/chrome/browser/mac/mac_startup_profiler.h
+++ b/chrome/browser/mac/mac_startup_profiler.h
@@ -50,8 +50,9 @@ class MacStartupProfiler {
// Records UMA metrics for a specific location.
void RecordHistogram(Location location, const base::TimeDelta& delta);
- // Keeps track of the time at which each initialization phase was reached.
- std::map<Location, base::Time> profiled_times_;
+ // Keeps track of the TimeTicks at which each initialization phase was
msw 2015/11/10 18:58:38 nit: the comment change isn't really necessary.
gab 2015/11/10 19:18:49 Done.
+ // reached.
+ std::map<Location, base::TimeTicks> profiled_ticks_;
// Whether UMA metrics have been recorded. Only record UMA metrics once.
bool recorded_metrics_;

Powered by Google App Engine
This is Rietveld 408576698