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

Side by Side Diff: components/startup_metric_utils/startup_metric_utils.h

Issue 1421293005: Move new Startup.FirstWebContents.* stats to Startup.FirstWebContents.*2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ab2_moar_betta_metrics
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_STARTUP_METRIC_UTILS_H_ 5 #ifndef COMPONENTS_STARTUP_METRIC_UTILS_STARTUP_METRIC_UTILS_H_
6 #define COMPONENTS_STARTUP_METRIC_UTILS_STARTUP_METRIC_UTILS_H_ 6 #define COMPONENTS_STARTUP_METRIC_UTILS_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 the time when the first web contents loaded its main frame. 71 // 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.
72 void RecordFirstWebContentsMainFrameLoad(const base::Time& time); 73 void RecordFirstWebContentsMainFrameLoad(const base::Time& time);
73 74
75 // 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.
77 void RecordDeprecatedFirstWebContentsMainFrameLoad(const base::Time& time);
78
79 // 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.
81 void RecordFirstWebContentsNonEmptyPaint(const base::Time& time);
82
74 // Call this with the time when the first web contents had a non-empty paint. 83 // Call this with the time when the first web contents had a non-empty paint.
75 void RecordFirstWebContentsNonEmptyPaint(const base::Time& time); 84 // This records an old stat kept for comparison purposes until M49.
85 void RecordDeprecatedFirstWebContentsNonEmptyPaint(const base::Time& time);
76 86
77 // Call this with the time when the first web contents began navigating its main 87 // Call this with the time when the first web contents began navigating its main
78 // frame. 88 // frame.
79 void RecordFirstWebContentsMainNavigationStart(const base::Time& time); 89 void RecordFirstWebContentsMainNavigationStart(const base::Time& time);
80 90
81 // 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
82 // its navigation for the main frame. 92 // its navigation for the main frame.
83 void RecordFirstWebContentsMainNavigationFinished(const base::Time& time); 93 void RecordFirstWebContentsMainNavigationFinished(const base::Time& time);
84 94
85 // Returns the time of main entry recorded from RecordMainEntryPointTime. 95 // Returns the time of main entry recorded from RecordMainEntryPointTime.
86 // Returns a null Time if a value has not been recorded yet. 96 // Returns a null Time if a value has not been recorded yet.
87 // This method is expected to be called from the UI thread. 97 // This method is expected to be called from the UI thread.
88 base::Time MainEntryPointTime(); 98 base::Time MainEntryPointTime();
89 99
90 // Returns the startup type. This is only currently supported on the Windows 100 // Returns the startup type. This is only currently supported on the Windows
91 // platform and will simply return UNCERTAIN_STARTUP_TYPE on other platforms. 101 // platform and will simply return UNCERTAIN_STARTUP_TYPE on other platforms.
92 // This is only valid after a call to RecordBrowserMainMessageLoopStart(). 102 // This is only valid after a call to RecordBrowserMainMessageLoopStart().
93 StartupTemperature GetStartupTemperature(); 103 StartupTemperature GetStartupTemperature();
94 104
95 } // namespace startup_metric_utils 105 } // namespace startup_metric_utils
96 106
97 #endif // COMPONENTS_STARTUP_METRIC_UTILS_STARTUP_METRIC_UTILS_H_ 107 #endif // COMPONENTS_STARTUP_METRIC_UTILS_STARTUP_METRIC_UTILS_H_
OLDNEW
« no previous file with comments | « components/metrics/proto/profiler_event.proto ('k') | components/startup_metric_utils/startup_metric_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698