21 #include "absl/flags/flag.h"
29 ABSL_FLAG(
bool, enable_log_reporter,
true,
30 "Enable reporting of benchmark results through GprLog");
33 "Write JSON benchmark report to the file specified.");
42 "Address of the performance database server");
47 "Server address for rpc reporter to send results to");
49 ABSL_FLAG(
bool, enable_rpc_reporter,
false,
"Enable use of RPC reporter");
54 "Credential type for communication to the QPS benchmark report server");
62 composite_reporter->
add(
66 composite_reporter->add(std::unique_ptr<Reporter>(
new JsonReporter(
71 std::shared_ptr<ChannelCredentials> channel_creds =
73 absl::GetFlag(FLAGS_rpc_reporter_credential_type), &channel_args);
75 composite_reporter->add(std::unique_ptr<Reporter>(
new RpcReporter(
81 return std::shared_ptr<Reporter>(composite_reporter);