diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-03-04 13:54:39 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-03-04 13:54:39 -0800 |
commit | a182bf12b0ef71e6fdcb93a818c4476a9d142e37 (patch) | |
tree | e548b23c362f5306a698e758fcb835e932f507d8 /test/cpp/qps/driver.cc | |
parent | ce78a19da284a70ec81de36a394728bdb33fcab5 (diff) |
clang-format
Diffstat (limited to 'test/cpp/qps/driver.cc')
-rw-r--r-- | test/cpp/qps/driver.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/cpp/qps/driver.cc b/test/cpp/qps/driver.cc index de1ccce3d7..6d5df799a2 100644 --- a/test/cpp/qps/driver.cc +++ b/test/cpp/qps/driver.cc @@ -71,8 +71,10 @@ static vector<string> get_hosts(const string& name) { } } -ScenarioResult RunScenario(const ClientConfig& initial_client_config, size_t num_clients, - const ServerConfig& server_config, size_t num_servers) { +ScenarioResult RunScenario(const ClientConfig& initial_client_config, + size_t num_clients, + const ServerConfig& server_config, + size_t num_servers) { // ClientContext allocator (all are destroyed at scope exit) list<ClientContext> contexts; auto alloc_context = [&contexts]() { @@ -183,13 +185,15 @@ ScenarioResult RunScenario(const ClientConfig& initial_client_config, size_t num for (auto& server : servers) { GPR_ASSERT(server.stream->Read(&server_status)); const auto& stats = server_status.stats(); - result.server_resources.push_back(ResourceUsage{stats.time_elapsed(), stats.time_user(), stats.time_system()}); + result.server_resources.push_back(ResourceUsage{ + stats.time_elapsed(), stats.time_user(), stats.time_system()}); } for (auto& client : clients) { GPR_ASSERT(client.stream->Read(&client_status)); const auto& stats = client_status.stats(); result.latencies.MergeProto(stats.latencies()); - result.client_resources.push_back(ResourceUsage{stats.time_elapsed(), stats.time_user(), stats.time_system()}); + result.client_resources.push_back(ResourceUsage{ + stats.time_elapsed(), stats.time_user(), stats.time_system()}); } for (auto& client : clients) { |