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

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

Issue 23443009: [Android] Support startup histogram. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [Android] Support startup histogram; remove unnecessary change to AwShellApplication.java Created 7 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 CHROME_COMMON_STARTUP_METRIC_UTILS_H_ 5 #ifndef CHROME_COMMON_STARTUP_METRIC_UTILS_H_
6 #define CHROME_COMMON_STARTUP_METRIC_UTILS_H_ 6 #define CHROME_COMMON_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 13 matching lines...) Expand all
24 // Note on usage: This function is idempotent and its overhead is low enough 24 // Note on usage: This function is idempotent and its overhead is low enough
25 // in comparison with UI display that it's OK to call it on every 25 // in comparison with UI display that it's OK to call it on every
26 // UI invocation regardless of whether the browser window has already 26 // UI invocation regardless of whether the browser window has already
27 // been displayed or not. 27 // been displayed or not.
28 void SetNonBrowserUIDisplayed(); 28 void SetNonBrowserUIDisplayed();
29 29
30 // Call this as early as possible in the startup process to record a 30 // Call this as early as possible in the startup process to record a
31 // timestamp. 31 // timestamp.
32 void RecordMainEntryPointTime(); 32 void RecordMainEntryPointTime();
33 33
34 // On Android the entry point time is the time at which the Java code starts.
35 // This is recorded on the Java side, and then passed to the C++ side once the
36 // C++ library is loaded and running.
37 void RecordSavedMainEntryPointTime(const base::Time& entry_point_time);
jeremy 2013/08/27 19:18:51 # if defined(OS_ANDROID)
aberent 2013/08/28 15:53:05 Done.
38
34 // Called just before the message loop is about to start. Entry point to record 39 // Called just before the message loop is about to start. Entry point to record
35 // startup stats. 40 // startup stats.
36 // |is_first_run| - is the current launch part of a first run. 41 // |is_first_run| - is the current launch part of a first run.
37 void OnBrowserStartupComplete(bool is_first_run); 42 void OnBrowserStartupComplete(bool is_first_run);
38 43
39 // Called when the initial page load has finished in order to record startup 44 // Called when the initial page load has finished in order to record startup
40 // stats. 45 // stats.
41 void OnInitialPageLoadComplete(); 46 void OnInitialPageLoadComplete();
42 47
43 // Scoper that records the time period before it's destructed in a histogram 48 // Scoper that records the time period before it's destructed in a histogram
(...skipping 10 matching lines...) Expand all
54 private: 59 private:
55 const base::TimeTicks start_time_; 60 const base::TimeTicks start_time_;
56 const std::string histogram_name_; 61 const std::string histogram_name_;
57 62
58 DISALLOW_COPY_AND_ASSIGN(ScopedSlowStartupUMA); 63 DISALLOW_COPY_AND_ASSIGN(ScopedSlowStartupUMA);
59 }; 64 };
60 65
61 } // namespace startup_metric_utils 66 } // namespace startup_metric_utils
62 67
63 #endif // CHROME_COMMON_STARTUP_METRIC_UTILS_H_ 68 #endif // CHROME_COMMON_STARTUP_METRIC_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698