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

Side by Side 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: fix whitespace error. 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_ 5 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_
6 #define COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_ 6 #define COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // |is_first_run| - is the current launch part of a first run. 65 // |is_first_run| - is the current launch part of a first run.
66 void RecordBrowserMainMessageLoopStart(const base::TimeTicks& ticks, 66 void RecordBrowserMainMessageLoopStart(const base::TimeTicks& ticks,
67 bool is_first_run); 67 bool is_first_run);
68 68
69 // Call this with the time when the first browser window became visible. 69 // Call this with the time when the first browser window became visible.
70 void RecordBrowserWindowDisplay(const base::TimeTicks& ticks); 70 void RecordBrowserWindowDisplay(const base::TimeTicks& ticks);
71 71
72 // Call this with the time delta that the browser spent opening its tabs. 72 // Call this with the time delta that the browser spent opening its tabs.
73 void RecordBrowserOpenTabsDelta(const base::TimeDelta& delta); 73 void RecordBrowserOpenTabsDelta(const base::TimeDelta& delta);
74 74
75 // Call this with a renderer main entry time. The value provided for the first
76 // call to this function is used to compute
77 // Startup.LoadTime.BrowserMainToRendererMain. Further calls to this
78 // function are ignored.
79 void RecordRendererMainEntryTime(const base::TimeTicks& ticks);
80
75 // Call this with the time when the first web contents loaded its main frame, 81 // Call this with the time when the first web contents loaded its main frame,
76 // only if the first web contents was unimpended in its attempt to do so. 82 // only if the first web contents was unimpended in its attempt to do so.
77 void RecordFirstWebContentsMainFrameLoad(const base::TimeTicks& ticks); 83 void RecordFirstWebContentsMainFrameLoad(const base::TimeTicks& ticks);
78 84
79 // Call this with the time when the first web contents loaded its main frame. 85 // Call this with the time when the first web contents loaded its main frame.
80 // This records an old stat kept for comparison purposes until M49. 86 // This records an old stat kept for comparison purposes until M49.
81 void RecordDeprecatedFirstWebContentsMainFrameLoad( 87 void RecordDeprecatedFirstWebContentsMainFrameLoad(
82 const base::TimeTicks& ticks); 88 const base::TimeTicks& ticks);
83 89
84 // Call this with the time when the first web contents had a non-empty paint, 90 // Call this with the time when the first web contents had a non-empty paint,
(...skipping 19 matching lines...) Expand all
104 base::TimeTicks MainEntryPointTicks(); 110 base::TimeTicks MainEntryPointTicks();
105 111
106 // Returns the startup type. This is only currently supported on the Windows 112 // Returns the startup type. This is only currently supported on the Windows
107 // platform and will simply return UNCERTAIN_STARTUP_TYPE on other platforms. 113 // platform and will simply return UNCERTAIN_STARTUP_TYPE on other platforms.
108 // This is only valid after a call to RecordBrowserMainMessageLoopStart(). 114 // This is only valid after a call to RecordBrowserMainMessageLoopStart().
109 StartupTemperature GetStartupTemperature(); 115 StartupTemperature GetStartupTemperature();
110 116
111 } // namespace startup_metric_utils 117 } // namespace startup_metric_utils
112 118
113 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_ 119 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698