pull/837/head
Craig Tiller 10 years ago
parent 76877c3f66
commit d701c5f5c3
  1. 3
      test/cpp/qps/driver.cc
  2. 4
      test/cpp/qps/histogram.h

@ -198,7 +198,8 @@ void RunScenario(const ClientConfig& initial_client_config, size_t num_clients,
} }
gpr_log(GPR_INFO, "Latencies (50/95/99/99.9%%-ile): %.1f/%.1f/%.1f/%.1f us", gpr_log(GPR_INFO, "Latencies (50/95/99/99.9%%-ile): %.1f/%.1f/%.1f/%.1f us",
latencies.Percentile(50) / 1e3, latencies.Percentile(95) / 1e3, latencies.Percentile(99) / 1e3, latencies.Percentile(99.9) / 1e3); latencies.Percentile(50) / 1e3, latencies.Percentile(95) / 1e3,
latencies.Percentile(99) / 1e3, latencies.Percentile(99.9) / 1e3);
} }
} }
} }

@ -65,7 +65,9 @@ class Histogram {
p->set_count(gpr_histogram_count(impl_)); p->set_count(gpr_histogram_count(impl_));
} }
void MergeProto(const HistogramData& p) { void MergeProto(const HistogramData& p) {
gpr_histogram_merge_contents(impl_, &*p.bucket().begin(), p.bucket_size(), p.min_seen(), p.max_seen(), p.sum(), p.sum_of_squares(), p.count()); gpr_histogram_merge_contents(impl_, &*p.bucket().begin(), p.bucket_size(),
p.min_seen(), p.max_seen(), p.sum(),
p.sum_of_squares(), p.count());
} }
private: private:

Loading…
Cancel
Save