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

Side by Side Diff: chrome/browser/chrome_browser_main.h

Issue 8429009: Enable tracking of objects by default (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_CHROME_BROWSER_MAIN_H_ 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 const content::MainFunctionParams& parameters_; 116 const content::MainFunctionParams& parameters_;
117 const CommandLine& parsed_command_line_; 117 const CommandLine& parsed_command_line_;
118 int result_code_; 118 int result_code_;
119 119
120 // Create ShutdownWatcherHelper object for watching jank during shutdown. 120 // Create ShutdownWatcherHelper object for watching jank during shutdown.
121 // Please keep |shutdown_watcher| as the first object constructed, and hence 121 // Please keep |shutdown_watcher| as the first object constructed, and hence
122 // it is destroyed last. 122 // it is destroyed last.
123 scoped_ptr<ShutdownWatcherHelper> shutdown_watcher_; 123 scoped_ptr<ShutdownWatcherHelper> shutdown_watcher_;
124 124
125 #if defined(TRACK_ALL_TASK_OBJECTS)
126 // Creating this object starts tracking the creation and deletion of Task 125 // Creating this object starts tracking the creation and deletion of Task
127 // instance. This MUST be done before main_message_loop, so that it is 126 // instance. This MUST be done before main_message_loop, so that it is
128 // destroyed after the main_message_loop. 127 // destroyed after the main_message_loop.
129 tracked_objects::AutoTracking tracking_objects_; 128 tracked_objects::AutoTracking tracking_objects_;
130 #endif
131 129
132 // Statistical testing infrastructure for the entire browser. NULL until 130 // Statistical testing infrastructure for the entire browser. NULL until
133 // SetupMetricsAndFieldTrials is called. 131 // SetupMetricsAndFieldTrials is called.
134 scoped_ptr<base::FieldTrialList> field_trial_list_; 132 scoped_ptr<base::FieldTrialList> field_trial_list_;
135 133
136 // Members initialized after / released before main_message_loop_ ------------ 134 // Members initialized after / released before main_message_loop_ ------------
137 135
138 scoped_ptr<BrowserProcessImpl> browser_process_; 136 scoped_ptr<BrowserProcessImpl> browser_process_;
139 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_; 137 scoped_refptr<HistogramSynchronizer> histogram_synchronizer_;
140 scoped_ptr<ProcessSingleton> process_singleton_; 138 scoped_ptr<ProcessSingleton> process_singleton_;
(...skipping 26 matching lines...) Expand all
167 // Records the time from our process' startup to the present time in 165 // Records the time from our process' startup to the present time in
168 // the UMA histogram |metric_name|. 166 // the UMA histogram |metric_name|.
169 void RecordBrowserStartupTime(); 167 void RecordBrowserStartupTime();
170 168
171 // Records a time value to an UMA histogram in the context of the 169 // Records a time value to an UMA histogram in the context of the
172 // PreReadExperiment field-trial. This also reports to the appropriate 170 // PreReadExperiment field-trial. This also reports to the appropriate
173 // sub-histogram (_PreRead(Enabled|Disabled)). 171 // sub-histogram (_PreRead(Enabled|Disabled)).
174 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time); 172 void RecordPreReadExperimentTime(const char* name, base::TimeDelta time);
175 173
176 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_ 174 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698