expired_histogram_util.h 725 B

123456789101112131415161718192021
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_METRICS_EXPIRED_HISTOGRAM_UTIL_H_
  5. #define COMPONENTS_METRICS_EXPIRED_HISTOGRAM_UTIL_H_
  6. #include <stddef.h>
  7. #include <stdint.h>
  8. namespace metrics {
  9. // Enables histogram expiry checker if it is enabled by field trial. Histogram
  10. // expiry is disbaled by default so that unit tests don't fail unexpectedly when
  11. // a histogram expires.
  12. void EnableExpiryChecker(const uint32_t* expired_histograms_hashes,
  13. size_t num_expired_histograms);
  14. } // namespace metrics
  15. #endif // COMPONENTS_METRICS_EXPIRED_HISTOGRAM_UTIL_H_