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

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: 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // |is_first_run| - is the current launch part of a first run. 61 // |is_first_run| - is the current launch part of a first run.
62 void RecordBrowserMainMessageLoopStart(const base::Time& time, 62 void RecordBrowserMainMessageLoopStart(const base::Time& time,
63 bool is_first_run); 63 bool is_first_run);
64 64
65 // Call this with the time when the first browser window became visible. 65 // Call this with the time when the first browser window became visible.
66 void RecordBrowserWindowDisplay(const base::Time& time); 66 void RecordBrowserWindowDisplay(const base::Time& time);
67 67
68 // Call this with the time delta that the browser spent opening its tabs. 68 // Call this with the time delta that the browser spent opening its tabs.
69 void RecordBrowserOpenTabsDelta(const base::TimeDelta& delta); 69 void RecordBrowserOpenTabsDelta(const base::TimeDelta& delta);
70 70
71 // Call this with a renderer main entry time. The value provided for the first
72 // call to this function is used to compute
73 // Startup.LoadTime.BrowserDLLMainToRendererDLLMain. Further calls to this
74 // function don't do anything.
gab 2015/11/06 18:05:17 s/don't do anything/are ignored/
fdoray 2015/11/09 15:53:56 Done.
75 void RecordRendererMainEntryTime(const base::Time& time);
76
71 // Call this with the time when the first web contents loaded its main frame, 77 // Call this with the time when the first web contents loaded its main frame,
72 // only if the first web contents was unimpended in its attempt to do so. 78 // only if the first web contents was unimpended in its attempt to do so.
73 void RecordFirstWebContentsMainFrameLoad(const base::Time& time); 79 void RecordFirstWebContentsMainFrameLoad(const base::Time& time);
74 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 // This records an old stat kept for comparison purposes until M49. 82 // This records an old stat kept for comparison purposes until M49.
77 void RecordDeprecatedFirstWebContentsMainFrameLoad(const base::Time& time); 83 void RecordDeprecatedFirstWebContentsMainFrameLoad(const base::Time& time);
78 84
79 // Call this with the time when the first web contents had a non-empty paint, 85 // Call this with the time when the first web contents had a non-empty paint,
80 // only if the first web contents was unimpended in its attempt to do so. 86 // only if the first web contents was unimpended in its attempt to do so.
(...skipping 17 matching lines...) Expand all
98 base::Time MainEntryPointTime(); 104 base::Time MainEntryPointTime();
99 105
100 // Returns the startup type. This is only currently supported on the Windows 106 // Returns the startup type. This is only currently supported on the Windows
101 // platform and will simply return UNCERTAIN_STARTUP_TYPE on other platforms. 107 // platform and will simply return UNCERTAIN_STARTUP_TYPE on other platforms.
102 // This is only valid after a call to RecordBrowserMainMessageLoopStart(). 108 // This is only valid after a call to RecordBrowserMainMessageLoopStart().
103 StartupTemperature GetStartupTemperature(); 109 StartupTemperature GetStartupTemperature();
104 110
105 } // namespace startup_metric_utils 111 } // namespace startup_metric_utils
106 112
107 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_ 113 #endif // COMPONENTS_STARTUP_METRIC_UTILS_BROWSER_STARTUP_METRIC_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698