| 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 // BucketRanges stores the vector of ranges that delimit what samples are | 5 // BucketRanges stores the vector of ranges that delimit what samples are |
| 6 // tallied in the corresponding buckets of a histogram. Histograms that have | 6 // tallied in the corresponding buckets of a histogram. Histograms that have |
| 7 // same ranges for all their corresponding buckets should share the same | 7 // same ranges for all their corresponding buckets should share the same |
| 8 // BucketRanges object. | 8 // BucketRanges object. |
| 9 // | 9 // |
| 10 // E.g. A 5 buckets LinearHistogram with 1 as minimal value and 4 as maximal | 10 // E.g. A 5 buckets LinearHistogram with 1 as minimal value and 4 as maximal |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // possibly Equal() to this instance. | 64 // possibly Equal() to this instance. |
| 65 // TODO(kaiwang): Consider change this to uint64. Because we see a lot of | 65 // TODO(kaiwang): Consider change this to uint64. Because we see a lot of |
| 66 // noise on UMA dashboard. | 66 // noise on UMA dashboard. |
| 67 uint32 checksum_; | 67 uint32 checksum_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(BucketRanges); | 69 DISALLOW_COPY_AND_ASSIGN(BucketRanges); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 ////////////////////////////////////////////////////////////////////////////// | 72 ////////////////////////////////////////////////////////////////////////////// |
| 73 // Expose only for test. | 73 // Expose only for test. |
| 74 BASE_EXPORT_PRIVATE extern const uint32 kCrcTable[256]; | 74 BASE_EXPORT extern const uint32 kCrcTable[256]; |
| 75 | 75 |
| 76 } // namespace base | 76 } // namespace base |
| 77 | 77 |
| 78 #endif // BASE_METRICS_BUCKET_RANGES_H_ | 78 #endif // BASE_METRICS_BUCKET_RANGES_H_ |
| OLD | NEW |