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

Unified Diff: components/startup_metric_utils/startup_metric_utils.h

Issue 1278673002: Add stats collection for telemetry startup.warm.blank_page test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment. Created 5 years, 4 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
Index: components/startup_metric_utils/startup_metric_utils.h
diff --git a/components/startup_metric_utils/startup_metric_utils.h b/components/startup_metric_utils/startup_metric_utils.h
index 952abf954e77a957d21d6c33fb1f9c22637589f7..342fb0f7f171e2f0583e41d5703633a90cbdf31a 100644
--- a/components/startup_metric_utils/startup_metric_utils.h
+++ b/components/startup_metric_utils/startup_metric_utils.h
@@ -27,8 +27,7 @@ bool WasNonBrowserUIDisplayed();
// been displayed or not.
void SetNonBrowserUIDisplayed();
-// Call this as early as possible in the startup process to record a
-// timestamp.
+// Call this as early as possible in the startup process to record a timestamp.
void RecordMainEntryPointTime();
// Call this when the executable is loaded and main() is entered. Can be
@@ -36,12 +35,11 @@ void RecordMainEntryPointTime();
// contained in a separate dll, such as with chrome.exe / chrome.dll on Windows.
void RecordExeMainEntryTime();
-#if defined(OS_ANDROID)
-// On Android the entry point time is the time at which the Java code starts.
-// This is recorded on the Java side, and then passed to the C++ side once the
-// C++ library is loaded and running.
+// Call this with a previously recorded timestamp if unable to call
+// RecordMainEntryPointTime() directly on startup.
+// On Android, the entry point time is the time at which the Java code starts.
+// In Mojo, the entry point time is the time at which the shell starts.
void RecordSavedMainEntryPointTime(const base::Time& entry_point_time);
-#endif // OS_ANDROID
// Called just before the message loop is about to start. Entry point to record
// startup stats.
« no previous file with comments | « components/html_viewer/stats_collection_controller.cc ('k') | components/startup_metric_utils/startup_metric_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698