| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 #include "base/atomicops.h" | 70 #include "base/atomicops.h" |
| 71 #include "base/base_export.h" | 71 #include "base/base_export.h" |
| 72 #include "base/basictypes.h" | 72 #include "base/basictypes.h" |
| 73 #include "base/compiler_specific.h" | 73 #include "base/compiler_specific.h" |
| 74 #include "base/gtest_prod_util.h" | 74 #include "base/gtest_prod_util.h" |
| 75 #include "base/logging.h" | 75 #include "base/logging.h" |
| 76 #include "base/memory/scoped_ptr.h" | 76 #include "base/memory/scoped_ptr.h" |
| 77 #include "base/metrics/bucket_ranges.h" | 77 #include "base/metrics/bucket_ranges.h" |
| 78 #include "base/metrics/histogram_base.h" | 78 #include "base/metrics/histogram_base.h" |
| 79 #include "base/metrics/histogram_samples.h" | 79 #include "base/metrics/histogram_samples.h" |
| 80 #include "base/time.h" | 80 #include "base/time/time.h" |
| 81 | 81 |
| 82 class Pickle; | 82 class Pickle; |
| 83 class PickleIterator; | 83 class PickleIterator; |
| 84 | 84 |
| 85 namespace base { | 85 namespace base { |
| 86 | 86 |
| 87 class Lock; | 87 class Lock; |
| 88 //------------------------------------------------------------------------------ | 88 //------------------------------------------------------------------------------ |
| 89 // Histograms are often put in areas where they are called many many times, and | 89 // Histograms are often put in areas where they are called many many times, and |
| 90 // performance is critical. As a result, they are designed to have a very low | 90 // performance is critical. As a result, they are designed to have a very low |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 static bool ValidateCustomRanges(const std::vector<Sample>& custom_ranges); | 666 static bool ValidateCustomRanges(const std::vector<Sample>& custom_ranges); |
| 667 static BucketRanges* CreateBucketRangesFromCustomRanges( | 667 static BucketRanges* CreateBucketRangesFromCustomRanges( |
| 668 const std::vector<Sample>& custom_ranges); | 668 const std::vector<Sample>& custom_ranges); |
| 669 | 669 |
| 670 DISALLOW_COPY_AND_ASSIGN(CustomHistogram); | 670 DISALLOW_COPY_AND_ASSIGN(CustomHistogram); |
| 671 }; | 671 }; |
| 672 | 672 |
| 673 } // namespace base | 673 } // namespace base |
| 674 | 674 |
| 675 #endif // BASE_METRICS_HISTOGRAM_H_ | 675 #endif // BASE_METRICS_HISTOGRAM_H_ |
| OLD | NEW |