aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util/benchmark_config.cc
diff options
context:
space:
mode:
authorGravatar Siddharth Rakesh <sidrakesh@google.com>2015-06-18 16:45:55 -0700
committerGravatar Siddharth Rakesh <sidrakesh@google.com>2015-06-18 16:45:55 -0700
commitcc5857b624a0f99af1cdf9944213673080d0fe52 (patch)
tree3cae0cb33c5b956bfde7fe1b1aebd77d4e0f69f9 /test/cpp/util/benchmark_config.cc
parenta31c9d27e084017d459bc5c72f96c1a37704dc0b (diff)
Fixed hanging client declaration, server address can be passed now
Diffstat (limited to 'test/cpp/util/benchmark_config.cc')
-rw-r--r--test/cpp/util/benchmark_config.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/cpp/util/benchmark_config.cc b/test/cpp/util/benchmark_config.cc
index 250bb7ac8e..f8cfabd0d6 100644
--- a/test/cpp/util/benchmark_config.cc
+++ b/test/cpp/util/benchmark_config.cc
@@ -45,6 +45,8 @@ DEFINE_string(test_name, "", "Name of the test being executed");
DEFINE_string(sys_info, "", "System information");
+DEFINE_string(server_address, "localhost:50052", "Address of the performance database server");
+
// In some distros, gflags is in the namespace google, and in some others,
// in gflags. This hack is enabling us to find both.
namespace google {}
@@ -67,7 +69,7 @@ static std::shared_ptr<Reporter> InitBenchmarkReporters() {
}
if(FLAGS_report_metrics_db) {
composite_reporter->add(
- std::unique_ptr<Reporter>(new UserDatabaseReporter("UserDataReporter", FLAGS_access_token, FLAGS_test_name, FLAGS_sys_info)));
+ std::unique_ptr<Reporter>(new PerfDbReporter("PerfDbReporter", FLAGS_access_token, FLAGS_test_name, FLAGS_sys_info, FLAGS_server_address)));
}
return std::shared_ptr<Reporter>(composite_reporter);