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 | 8 |
9 // It supports calls to accumulate either time intervals (which are processed | 9 // It supports calls to accumulate either time intervals (which are processed |
10 // as integral number of milliseconds), or arbitrary integral units. | 10 // as integral number of milliseconds), or arbitrary integral units. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 #include <string> | 74 #include <string> |
75 #include <vector> | 75 #include <vector> |
76 | 76 |
77 #include "base/base_export.h" | 77 #include "base/base_export.h" |
78 #include "base/compiler_specific.h" | 78 #include "base/compiler_specific.h" |
79 #include "base/gtest_prod_util.h" | 79 #include "base/gtest_prod_util.h" |
80 #include "base/logging.h" | 80 #include "base/logging.h" |
81 #include "base/macros.h" | 81 #include "base/macros.h" |
82 #include "base/metrics/bucket_ranges.h" | 82 #include "base/metrics/bucket_ranges.h" |
83 #include "base/metrics/histogram_base.h" | 83 #include "base/metrics/histogram_base.h" |
84 #if !defined(OS_MACOSX) || defined(OS_IOS) | 84 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) || defined(OS_IOS) || \ |
| 85 defined(OS_WIN) |
85 // TODO(asvitkine): Migrate callers to to include this directly and remove this. | 86 // TODO(asvitkine): Migrate callers to to include this directly and remove this. |
86 // Note: Incrementally migrating platforms as they become clean. | 87 // Note: Incrementally migrating platforms as they become clean. |
87 #include "base/metrics/histogram_macros.h" | 88 #include "base/metrics/histogram_macros.h" |
88 #endif | 89 #endif |
89 #include "base/metrics/histogram_samples.h" | 90 #include "base/metrics/histogram_samples.h" |
90 #include "base/time/time.h" | 91 #include "base/time/time.h" |
91 | 92 |
92 namespace base { | 93 namespace base { |
93 | 94 |
94 class BooleanHistogram; | 95 class BooleanHistogram; |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 static HistogramBase* DeserializeInfoImpl(base::PickleIterator* iter); | 546 static HistogramBase* DeserializeInfoImpl(base::PickleIterator* iter); |
546 | 547 |
547 static bool ValidateCustomRanges(const std::vector<Sample>& custom_ranges); | 548 static bool ValidateCustomRanges(const std::vector<Sample>& custom_ranges); |
548 | 549 |
549 DISALLOW_COPY_AND_ASSIGN(CustomHistogram); | 550 DISALLOW_COPY_AND_ASSIGN(CustomHistogram); |
550 }; | 551 }; |
551 | 552 |
552 } // namespace base | 553 } // namespace base |
553 | 554 |
554 #endif // BASE_METRICS_HISTOGRAM_H_ | 555 #endif // BASE_METRICS_HISTOGRAM_H_ |
OLD | NEW |