Skip to content
Snippets Groups Projects
Commit 3ae11042 authored by Vijay Pai's avatar Vijay Pai
Browse files

clang-format

parent b1db869e
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ class Client { ...@@ -83,7 +83,7 @@ class Client {
ClientStats Mark() { ClientStats Mark() {
Histogram latencies; Histogram latencies;
// avoid std::vector for old compilers that expect a copy constructor // avoid std::vector for old compilers that expect a copy constructor
Histogram *to_merge = new Histogram[threads_.size()]; Histogram* to_merge = new Histogram[threads_.size()];
for (size_t i = 0; i < threads_.size(); i++) { for (size_t i = 0; i < threads_.size(); i++) {
threads_[i]->BeginSwap(&to_merge[i]); threads_[i]->BeginSwap(&to_merge[i]);
} }
......
...@@ -97,7 +97,7 @@ struct ClientData { ...@@ -97,7 +97,7 @@ struct ClientData {
unique_ptr<Worker::Stub> stub; unique_ptr<Worker::Stub> stub;
unique_ptr<ClientReaderWriter<ClientArgs, ClientStatus>> stream; unique_ptr<ClientReaderWriter<ClientArgs, ClientStatus>> stream;
}; };
} // namespace runsc } // namespace runsc
std::unique_ptr<ScenarioResult> RunScenario( std::unique_ptr<ScenarioResult> RunScenario(
const ClientConfig& initial_client_config, size_t num_clients, const ClientConfig& initial_client_config, size_t num_clients,
......
...@@ -140,14 +140,18 @@ void PerfDbReporter::ReportLatency(const ScenarioResult& result) { ...@@ -140,14 +140,18 @@ void PerfDbReporter::ReportLatency(const ScenarioResult& result) {
} }
void PerfDbReporter::ReportTimes(const ScenarioResult& result) { void PerfDbReporter::ReportTimes(const ScenarioResult& result) {
const double server_system_time = 100.0 * sum(result.server_resources, SystemTime) / const double server_system_time = 100.0 *
sum(result.server_resources, WallTime); sum(result.server_resources, SystemTime) /
const double server_user_time = 100.0 * sum(result.server_resources, UserTime) / sum(result.server_resources, WallTime);
sum(result.server_resources, WallTime); const double server_user_time = 100.0 *
const double client_system_time = 100.0 * sum(result.client_resources, SystemTime) / sum(result.server_resources, UserTime) /
sum(result.client_resources, WallTime); sum(result.server_resources, WallTime);
const double client_user_time = 100.0 * sum(result.client_resources, UserTime) / const double client_system_time = 100.0 *
sum(result.client_resources, WallTime); sum(result.client_resources, SystemTime) /
sum(result.client_resources, WallTime);
const double client_user_time = 100.0 *
sum(result.client_resources, UserTime) /
sum(result.client_resources, WallTime);
perf_db_client_.setTimes(server_system_time, server_user_time, perf_db_client_.setTimes(server_system_time, server_user_time,
client_system_time, client_user_time); client_system_time, client_user_time);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment