OLD | NEW |
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 #include "base/metrics/statistics_recorder.h" | 5 #include "base/metrics/statistics_recorder.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/debug/leak_annotations.h" | 8 #include "base/debug/leak_annotations.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
14 | 14 |
15 using std::list; | 15 using std::list; |
16 using std::string; | 16 using std::string; |
17 | 17 |
18 namespace { | 18 namespace { |
19 // Initialize histogram statistics gathering system. | 19 // Initialize histogram statistics gathering system. |
20 base::LazyInstance<base::StatisticsRecorder>::Leaky g_statistics_recorder_ = | 20 base::LazyInstance<base::StatisticsRecorder>::Leaky g_statistics_recorder_ = |
21 LAZY_INSTANCE_INITIALIZER; | 21 LAZY_INSTANCE_INITIALIZER; |
22 } // namespace | 22 } // namespace |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 283 |
284 | 284 |
285 // static | 285 // static |
286 StatisticsRecorder::HistogramMap* StatisticsRecorder::histograms_ = NULL; | 286 StatisticsRecorder::HistogramMap* StatisticsRecorder::histograms_ = NULL; |
287 // static | 287 // static |
288 StatisticsRecorder::RangesMap* StatisticsRecorder::ranges_ = NULL; | 288 StatisticsRecorder::RangesMap* StatisticsRecorder::ranges_ = NULL; |
289 // static | 289 // static |
290 base::Lock* StatisticsRecorder::lock_ = NULL; | 290 base::Lock* StatisticsRecorder::lock_ = NULL; |
291 | 291 |
292 } // namespace base | 292 } // namespace base |
OLD | NEW |