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

Unified Diff: mojo/services/tracing/tracing_app.cc

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: ifdef thread priority dance out on Mac per lack of support in base 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: mojo/services/tracing/tracing_app.cc
diff --git a/mojo/services/tracing/tracing_app.cc b/mojo/services/tracing/tracing_app.cc
index 5162c669808fbeb1439e8cb827eeff787f033d24..e73f0ab16a638009e4e4d03f60f75a3979eb90c8 100644
--- a/mojo/services/tracing/tracing_app.cc
+++ b/mojo/services/tracing/tracing_app.cc
@@ -136,14 +136,14 @@ void TracingApp::SetShellMainEntryPointTime(int64 time) {
startup_performance_times_.shell_main_entry_point_time = time;
}
-void TracingApp::SetBrowserMessageLoopStartTime(int64 time) {
- if (startup_performance_times_.browser_message_loop_start_time == 0)
- startup_performance_times_.browser_message_loop_start_time = time;
+void TracingApp::SetBrowserMessageLoopStartTicks(int64 ticks) {
+ if (startup_performance_times_.browser_message_loop_start_ticks == 0)
+ startup_performance_times_.browser_message_loop_start_ticks = ticks;
}
-void TracingApp::SetBrowserWindowDisplayTime(int64 time) {
- if (startup_performance_times_.browser_window_display_time == 0)
- startup_performance_times_.browser_window_display_time = time;
+void TracingApp::SetBrowserWindowDisplayTicks(int64 ticks) {
+ if (startup_performance_times_.browser_window_display_ticks == 0)
+ startup_performance_times_.browser_window_display_ticks = ticks;
}
void TracingApp::SetBrowserOpenTabsTimeDelta(int64 delta) {
@@ -151,14 +151,14 @@ void TracingApp::SetBrowserOpenTabsTimeDelta(int64 delta) {
startup_performance_times_.browser_open_tabs_time_delta = delta;
}
-void TracingApp::SetFirstWebContentsMainFrameLoadTime(int64 time) {
- if (startup_performance_times_.first_web_contents_main_frame_load_time == 0)
- startup_performance_times_.first_web_contents_main_frame_load_time = time;
+void TracingApp::SetFirstWebContentsMainFrameLoadTicks(int64 ticks) {
+ if (startup_performance_times_.first_web_contents_main_frame_load_ticks == 0)
+ startup_performance_times_.first_web_contents_main_frame_load_ticks = ticks;
}
-void TracingApp::SetFirstVisuallyNonEmptyLayoutTime(int64 time) {
- if (startup_performance_times_.first_visually_non_empty_layout_time == 0)
- startup_performance_times_.first_visually_non_empty_layout_time = time;
+void TracingApp::SetFirstVisuallyNonEmptyLayoutTicks(int64 ticks) {
+ if (startup_performance_times_.first_visually_non_empty_layout_ticks == 0)
+ startup_performance_times_.first_visually_non_empty_layout_ticks = ticks;
}
void TracingApp::GetStartupPerformanceTimes(

Powered by Google App Engine
This is Rietveld 408576698