OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2014 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 |
| 5 #ifndef BASE_METRICS_HISTOGRAM_SAMPLE_H |
| 6 #define BASE_METRICS_HISTOGRAM_SAMPLE_H |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/base_export.h" |
| 11 |
| 12 #include "base/metrics/metric_sample.h" |
| 13 |
| 14 namespace base { |
| 15 class BASE_EXPORT HistogramSample : public MetricSample { |
| 16 public: |
| 17 HistogramSample(const std::string& name, |
| 18 int sample, |
| 19 int min, |
| 20 int max, |
| 21 int nbucket); |
| 22 virtual ~HistogramSample(); |
| 23 int sample(); |
| 24 int min(); |
| 25 int max(); |
| 26 int nbucket(); |
| 27 // static |
| 28 static HistogramSample* ReadHistogram( |
| 29 const std::string& serialized_histogram); |
| 30 string toString() const; |
| 31 |
| 32 protected: |
| 33 int max_, min_, sample_, nbucket_; |
| 34 }; |
| 35 } // namespace base |
| 36 #endif // BASE_METRICS_HISTOGRAM_SAMPLE_H |
OLD | NEW |