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

Side by Side Diff: chrome/common/startup_metric_utils.h

Issue 10662046: Add a histogram to measure browser window display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Improve code comments Created 8 years, 4 months 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 | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/startup_metric_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_STARTUP_METRIC_UTILS_H_
6 #define CHROME_COMMON_STARTUP_METRIC_UTILS_H_
7
8 // Utility functions to support metric collection for browser startup.
9
10 namespace startup_metric_utils {
11
12 // Returns true if any UI other than the browser window has been displayed
13 // so far. Useful to test if UI has been displayed before the first browser
14 // window was shown, which would invalidate any surrounding timing metrics.
15 bool WasNonBrowserUIDisplayed();
16
17 // Call this when displaying UI that might potentially delay the appearance
18 // of the initial browser window on Chrome startup.
19 //
20 // Note on usage: This function is idempotent and its overhead is low enough
21 // in comparison with UI display that it's OK to call it on every
22 // UI invocation regardless of whether the browser window has already
23 // been displayed or not.
24 void SetNonBrowserUIDisplayed();
25
26 } // namespace startup_metric_utils
27
28 #endif // CHROME_COMMON_STARTUP_METRIC_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/startup_metric_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698