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

Unified Diff: components/startup_metric_utils/browser/startup_metric_utils.h

Issue 1413533008: Add UMA metric: Startup.BrowserMainToRendererMain. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self-review 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: components/startup_metric_utils/browser/startup_metric_utils.h
diff --git a/components/startup_metric_utils/browser/startup_metric_utils.h b/components/startup_metric_utils/browser/startup_metric_utils.h
index b071321b73a1b80ddf1f8050ed3ec36dced300b1..e33ef1843b3c6b739873fe0c173427516ba5a0d5 100644
--- a/components/startup_metric_utils/browser/startup_metric_utils.h
+++ b/components/startup_metric_utils/browser/startup_metric_utils.h
@@ -68,6 +68,12 @@ void RecordBrowserWindowDisplay(const base::Time& time);
// Call this with the time delta that the browser spent opening its tabs.
void RecordBrowserOpenTabsDelta(const base::TimeDelta& delta);
+// Call this with a renderer main entry time. The value provided for the first
+// call to this function is used to compute
+// Startup.LoadTime.BrowserMainToRendererMain. Further calls to this
+// function are ignored.
+void RecordRendererMainEntryTime(const base::Time& time);
+
// Call this with the time when the first web contents loaded its main frame,
// only if the first web contents was unimpended in its attempt to do so.
void RecordFirstWebContentsMainFrameLoad(const base::Time& time);

Powered by Google App Engine
This is Rietveld 408576698