| 197 | inline void SamplerCell::Add(const double sample) { histogram_.Add(sample); } |
| 198 | |
| 199 | inline HistogramProto SamplerCell::value() const { |
| 200 | HistogramProto pb; |
| 201 | histogram_.EncodeToProto(&pb, true /* preserve_zero_buckets */); |
| 202 | return pb; |
| 203 | } |
| 204 | |
| 205 | template <int NumLabels> |
| 206 | Sampler<NumLabels>* Sampler<NumLabels>::New( |