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

Side by Side Diff: chrome/browser/metrics/variations/variations_service.h

Issue 10996067: Measure and log the latency of VariationsService requests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Medium times and no helper Created 8 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/variations_service.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) 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_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_
6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ 6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 bool create_trials_from_seed_called_; 154 bool create_trials_from_seed_called_;
155 155
156 // The timer used to repeatedly ping the server. Keep this as an instance 156 // The timer used to repeatedly ping the server. Keep this as an instance
157 // member so if VariationsService goes out of scope, the timer is 157 // member so if VariationsService goes out of scope, the timer is
158 // automatically canceled. 158 // automatically canceled.
159 base::RepeatingTimer<VariationsService> timer_; 159 base::RepeatingTimer<VariationsService> timer_;
160 160
161 // Helper class used to tell this service if it's allowed to make network 161 // Helper class used to tell this service if it's allowed to make network
162 // resource requests. 162 // resource requests.
163 scoped_ptr<ResourceRequestAllowedNotifier> resource_request_allowed_notifier_; 163 scoped_ptr<ResourceRequestAllowedNotifier> resource_request_allowed_notifier_;
164
165 // The start time of the last seed request. This is used to measure the
166 // latency of seed requests. Initially zero.
167 base::TimeTicks last_request_started_time_;
164 }; 168 };
165 169
166 } // namespace chrome_variations 170 } // namespace chrome_variations
167 171
168 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_ 172 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/metrics/variations/variations_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698