File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class PROMETHEUS_CPP_CORE_EXPORT Histogram {
57
57
// / Increments counters given a count for each bucket. (i.e. the caller of
58
58
// / this function must have already sorted the values into buckets).
59
59
// / Also increments the total sum of all observations by the given value.
60
- void ObserveMultiple (const std::vector<double > bucket_increments,
60
+ void ObserveMultiple (const std::vector<double >& bucket_increments,
61
61
const double sum_of_values);
62
62
63
63
// / \brief Get the current value of the counter.
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ void Histogram::Observe(const double value) {
24
24
bucket_counts_[bucket_index].Increment ();
25
25
}
26
26
27
- void Histogram::ObserveMultiple (const std::vector<double > bucket_increments,
27
+ void Histogram::ObserveMultiple (const std::vector<double >& bucket_increments,
28
28
const double sum_of_values) {
29
29
if (bucket_increments.size () != bucket_counts_.size ()) {
30
30
throw std::length_error (
You can’t perform that action at this time.
0 commit comments