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 // Histogram is an object that aggregates statistics, and can summarize them in | 5 // Histogram is an object that aggregates statistics, and can summarize them in |
6 // various forms, including ASCII graphical, HTML, and numerically (as a | 6 // various forms, including ASCII graphical, HTML, and numerically (as a |
7 // vector of numbers corresponding to each of the aggregating buckets). | 7 // vector of numbers corresponding to each of the aggregating buckets). |
8 // See header file for details and examples. | 8 // See header file for details and examples. |
9 | 9 |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
11 | 11 |
12 #include <math.h> | 12 #include <math.h> |
13 | 13 |
14 #include <algorithm> | 14 #include <algorithm> |
15 #include <string> | 15 #include <string> |
16 | 16 |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/debug/alias.h" | 18 #include "base/debug/alias.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/metrics/sample_vector.h" | 20 #include "base/metrics/sample_vector.h" |
21 #include "base/metrics/statistics_recorder.h" | 21 #include "base/metrics/statistics_recorder.h" |
22 #include "base/pickle.h" | 22 #include "base/pickle.h" |
23 #include "base/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "base/stringprintf.h" | 24 #include "base/strings/stringprintf.h" |
25 #include "base/synchronization/lock.h" | 25 #include "base/synchronization/lock.h" |
26 #include "base/values.h" | 26 #include "base/values.h" |
27 | 27 |
28 using std::string; | 28 using std::string; |
29 using std::vector; | 29 using std::vector; |
30 | 30 |
31 namespace base { | 31 namespace base { |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
832 | 832 |
833 BucketRanges* bucket_ranges = new BucketRanges(ranges.size()); | 833 BucketRanges* bucket_ranges = new BucketRanges(ranges.size()); |
834 for (size_t i = 0; i < ranges.size(); i++) { | 834 for (size_t i = 0; i < ranges.size(); i++) { |
835 bucket_ranges->set_range(i, ranges[i]); | 835 bucket_ranges->set_range(i, ranges[i]); |
836 } | 836 } |
837 bucket_ranges->ResetChecksum(); | 837 bucket_ranges->ResetChecksum(); |
838 return bucket_ranges; | 838 return bucket_ranges; |
839 } | 839 } |
840 | 840 |
841 } // namespace base | 841 } // namespace base |
OLD | NEW |