diff options
author | 2015-05-20 22:08:24 -0700 | |
---|---|---|
committer | 2015-05-20 23:08:29 -0700 | |
commit | a6b559a76ae3d96f8df4abe07173c8b56fbfc032 (patch) | |
tree | db1f0294769d548dacf79e8335f200dc266c7289 /test/cpp/util/benchmark_config.h | |
parent | 226beffea1fe772e172b6eb3125b096d0d11b2b2 (diff) |
Improvements to reporting mechanism based on comments.
Turned the reporter into a composite, much cleaner arch.
Diffstat (limited to 'test/cpp/util/benchmark_config.h')
-rw-r--r-- | test/cpp/util/benchmark_config.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/cpp/util/benchmark_config.h b/test/cpp/util/benchmark_config.h index efbcad88f0..3a3a6d61ae 100644 --- a/test/cpp/util/benchmark_config.h +++ b/test/cpp/util/benchmark_config.h @@ -43,7 +43,13 @@ namespace grpc { namespace testing { void InitBenchmark(int* argc, char*** argv, bool remove_flags); -std::vector<std::unique_ptr<Reporter> > InitBenchmarkReporters(); + +/** Returns the benchmark Reporter instance. + * + * The returned instane will take care of generating reports for all the actual + * reporters configured via the "enable_*_reporter" command line flags (see + * benchmark_config.cc). */ +const std::shared_ptr<Reporter>& GetReporter(); } // namespace testing } // namespace grpc |