| Index: base/metrics/histogram_base.cc
|
| diff --git a/base/metrics/histogram_base.cc b/base/metrics/histogram_base.cc
|
| index a5fade959eb41859d23133a132dc8f856bb6bf31..bcfb57feb231ce7be9b31bbf4eb34b0e8b441b0d 100644
|
| --- a/base/metrics/histogram_base.cc
|
| +++ b/base/metrics/histogram_base.cc
|
| @@ -6,12 +6,31 @@
|
|
|
| #include <climits>
|
|
|
| +#include "base/logging.h"
|
| #include "base/json/json_string_value_serializer.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/values.h"
|
|
|
| namespace base {
|
|
|
| +std::string HistogramTypeToString(HistogramType type) {
|
| + switch(type) {
|
| + case HISTOGRAM:
|
| + return "HISTOGRAM";
|
| + case LINEAR_HISTOGRAM:
|
| + return "LINEAR_HISTOGRAM";
|
| + case BOOLEAN_HISTOGRAM:
|
| + return "BOOLEAN_HISTOGRAM";
|
| + case CUSTOM_HISTOGRAM:
|
| + return "CUSTOM_HISTOGRAM";
|
| + case SPARSE_HISTOGRAM:
|
| + return "SPARSE_HISTOGRAM";
|
| + default:
|
| + NOTREACHED();
|
| + }
|
| + return "UNKNOWN";
|
| +}
|
| +
|
| const HistogramBase::Sample HistogramBase::kSampleType_MAX = INT_MAX;
|
|
|
| HistogramBase::HistogramBase(const std::string& name)
|
|
|