// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // BucketRanges stores the vector of ranges that delimit what samples are // tallied in the corresponding buckets of a histogram. Histograms that have // same ranges for all their corresponding buckets should share the same // BucketRanges object. // // E.g. A 5 buckets LinearHistogram with 1 as minimal value and 4 as maximal // value will need a BucketRanges with 6 ranges: // 0, 1, 2, 3, 4, INT_MAX // // TODO(kaiwang): Currently we keep all negative values in 0~1 bucket. Consider // changing 0 to INT_MIN. #ifndef BASE_METRICS_BUCKET_RANGES_H_ #define BASE_METRICS_BUCKET_RANGES_H_ #include <limits.h> #include <stddef.h> #include <stdint.h> #include <atomic> #include <vector> #include "base/base_export.h" #include "base/check_op.h" #include "base/metrics/histogram_base.h" namespace base { class BASE_EXPORT BucketRanges { … }; } // namespace base #endif // BASE_METRICS_BUCKET_RANGES_H_