aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps/histogram.h
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-04-10 08:23:52 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-04-10 08:23:52 -0700
commit66048f4fc1c0b181e05ef21f7821443abd258240 (patch)
treeed65016ac72fbaa7338583d2ac68726b26bb1b45 /test/cpp/qps/histogram.h
parent41faf0f4c893b57ba5a9ee1cf1ad329c9c9cec08 (diff)
Add reporting library, use it
Diffstat (limited to 'test/cpp/qps/histogram.h')
-rw-r--r--test/cpp/qps/histogram.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/qps/histogram.h b/test/cpp/qps/histogram.h
index 7ba00e94c3..fbb80abf87 100644
--- a/test/cpp/qps/histogram.h
+++ b/test/cpp/qps/histogram.h
@@ -50,10 +50,10 @@ class Histogram {
void Merge(Histogram* h) { gpr_histogram_merge(impl_, h->impl_); }
void Add(double value) { gpr_histogram_add(impl_, value); }
- double Percentile(double pctile) {
+ double Percentile(double pctile) const {
return gpr_histogram_percentile(impl_, pctile);
}
- double Count() { return gpr_histogram_count(impl_); }
+ double Count() const { return gpr_histogram_count(impl_); }
void Swap(Histogram* other) { std::swap(impl_, other->impl_); }
void FillProto(HistogramData* p) {
size_t n;