aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-14 18:05:42 -0700
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-04-14 18:05:42 -0700
commit453442eefb742a7a9b4b87e434da5d135d4fa2f4 (patch)
tree085294c815c9dad2030fc5c87e68e5aed76d8c6c /test/cpp
parent969ffaf5c61aeec0c52a721d64b39528da233fd3 (diff)
fix formatting
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/qps/report.cc12
-rw-r--r--test/cpp/qps/report.h5
2 files changed, 7 insertions, 10 deletions
diff --git a/test/cpp/qps/report.cc b/test/cpp/qps/report.cc
index 05fb111120..9cef7bf52f 100644
--- a/test/cpp/qps/report.cc
+++ b/test/cpp/qps/report.cc
@@ -85,7 +85,7 @@ void GprLogReporter::ReportQPS(const ScenarioResult& result) {
Histogram histogram;
histogram.MergeProto(result.latencies());
gpr_log(GPR_INFO, "QPS: %.1f",
- histogram.Count() / average(result.client_stats(), WallTime));
+ histogram.Count() / average(result.client_stats(), WallTime));
}
void GprLogReporter::ReportQPSPerCore(const ScenarioResult& result) {
@@ -102,10 +102,8 @@ void GprLogReporter::ReportLatency(const ScenarioResult& result) {
histogram.MergeProto(result.latencies());
gpr_log(GPR_INFO,
"Latencies (50/90/95/99/99.9%%-ile): %.1f/%.1f/%.1f/%.1f/%.1f us",
- histogram.Percentile(50) / 1000,
- histogram.Percentile(90) / 1000,
- histogram.Percentile(95) / 1000,
- histogram.Percentile(99) / 1000,
+ histogram.Percentile(50) / 1000, histogram.Percentile(90) / 1000,
+ histogram.Percentile(95) / 1000, histogram.Percentile(99) / 1000,
histogram.Percentile(99.9) / 1000);
}
@@ -133,8 +131,8 @@ void JsonReporter::ReportQPS(const ScenarioResult& result) {
grpc::string json_string;
result.SerializeToString(&binary);
auto status = BinaryToJsonString(type_resolver.get(),
- "type.googleapis.com/grpc.testing.ScenarioResult",
- binary, &json_string);
+ "type.googleapis.com/grpc.testing.ScenarioResult",
+ binary, &json_string);
GPR_ASSERT(status.ok());
std::ofstream output_file(report_file_);
diff --git a/test/cpp/qps/report.h b/test/cpp/qps/report.h
index e32a129e76..8f04d84124 100644
--- a/test/cpp/qps/report.h
+++ b/test/cpp/qps/report.h
@@ -107,9 +107,8 @@ class GprLogReporter : public Reporter {
/** Dumps the report to a JSON file. */
class JsonReporter : public Reporter {
public:
- JsonReporter(const string& name, const string& report_file) :
- Reporter(name),
- report_file_(report_file) {}
+ JsonReporter(const string& name, const string& report_file)
+ : Reporter(name), report_file_(report_file) {}
private:
void ReportQPS(const ScenarioResult& result) GRPC_OVERRIDE;