OLD | NEW |
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 "base/time/time.h" | 8 #include "base/time/time.h" |
9 | 9 |
10 class PrefRegistrySimple; | 10 class PrefRegistrySimple; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 // Call this with the time when the first web contents began navigating its main | 86 // Call this with the time when the first web contents began navigating its main |
87 // frame. Adds a suffix to its metrics according to |workload|. | 87 // frame. Adds a suffix to its metrics according to |workload|. |
88 void RecordFirstWebContentsMainNavigationStart(const base::TimeTicks& ticks, | 88 void RecordFirstWebContentsMainNavigationStart(const base::TimeTicks& ticks, |
89 WebContentsWorkload workload); | 89 WebContentsWorkload workload); |
90 | 90 |
91 // Call this with the time when the first web contents successfully committed | 91 // Call this with the time when the first web contents successfully committed |
92 // its navigation for the main frame. | 92 // its navigation for the main frame. |
93 void RecordFirstWebContentsMainNavigationFinished(const base::TimeTicks& ticks); | 93 void RecordFirstWebContentsMainNavigationFinished(const base::TimeTicks& ticks); |
94 | 94 |
| 95 // Call this with the time when the BrowserView painted its children for the |
| 96 // first time. |
| 97 void RecordBrowserViewFirstPaint(const base::TimeTicks& ticks); |
| 98 |
| 99 // Call this with the time when the BrowserView painted its children for the |
| 100 // first time and we got a CompositingEnded after that. |
| 101 void RecordBrowserViewFirstPaintCompositingEnded(const base::TimeTicks& ticks); |
| 102 |
95 // Returns the TimeTicks corresponding to main entry as recorded by | 103 // Returns the TimeTicks corresponding to main entry as recorded by |
96 // RecordMainEntryPointTime. Returns a null TimeTicks if a value has not been | 104 // RecordMainEntryPointTime. Returns a null TimeTicks if a value has not been |
97 // recorded yet. This method is expected to be called from the UI thread. | 105 // recorded yet. This method is expected to be called from the UI thread. |
98 base::TimeTicks MainEntryPointTicks(); | 106 base::TimeTicks MainEntryPointTicks(); |
99 | 107 |
100 } // namespace startup_metric_utils | 108 } // namespace startup_metric_utils |
101 | 109 |
102 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_ | 110 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_ |
OLD | NEW |