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/sparse_histogram.h" | 5 #include "base/metrics/sparse_histogram.h" |
6 | 6 |
7 #include "base/metrics/sample_map.h" | 7 #include "base/metrics/sample_map.h" |
8 #include "base/metrics/statistics_recorder.h" | 8 #include "base/metrics/statistics_recorder.h" |
9 #include "base/pickle.h" | 9 #include "base/pickle.h" |
10 #include "base/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/synchronization/lock.h" | 11 #include "base/synchronization/lock.h" |
12 | 12 |
13 using std::map; | 13 using std::map; |
14 using std::string; | 14 using std::string; |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 | 17 |
18 typedef HistogramBase::Count Count; | 18 typedef HistogramBase::Count Count; |
19 typedef HistogramBase::Sample Sample; | 19 typedef HistogramBase::Sample Sample; |
20 | 20 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 std::string* output) const { | 169 std::string* output) const { |
170 StringAppendF(output, | 170 StringAppendF(output, |
171 "Histogram: %s recorded %d samples", | 171 "Histogram: %s recorded %d samples", |
172 histogram_name().c_str(), | 172 histogram_name().c_str(), |
173 total_count); | 173 total_count); |
174 if (flags() & ~kHexRangePrintingFlag) | 174 if (flags() & ~kHexRangePrintingFlag) |
175 StringAppendF(output, " (flags = 0x%x)", flags() & ~kHexRangePrintingFlag); | 175 StringAppendF(output, " (flags = 0x%x)", flags() & ~kHexRangePrintingFlag); |
176 } | 176 } |
177 | 177 |
178 } // namespace base | 178 } // namespace base |
OLD | NEW |