Unverified Commit 785e2c31 by Dominic Hamon Committed by GitHub

Move Statistics struct to internal namespace (#753)

parent 4b9f43e2
...@@ -421,6 +421,7 @@ typedef double(BigOFunc)(int64_t); ...@@ -421,6 +421,7 @@ typedef double(BigOFunc)(int64_t);
// statistics over all the measurements of some type // statistics over all the measurements of some type
typedef double(StatisticsFunc)(const std::vector<double>&); typedef double(StatisticsFunc)(const std::vector<double>&);
namespace internal {
struct Statistics { struct Statistics {
std::string name_; std::string name_;
StatisticsFunc* compute_; StatisticsFunc* compute_;
...@@ -429,7 +430,6 @@ struct Statistics { ...@@ -429,7 +430,6 @@ struct Statistics {
: name_(name), compute_(compute) {} : name_(name), compute_(compute) {}
}; };
namespace internal {
struct BenchmarkInstance; struct BenchmarkInstance;
class ThreadTimer; class ThreadTimer;
class ThreadManager; class ThreadManager;
...@@ -1373,7 +1373,7 @@ class BenchmarkReporter { ...@@ -1373,7 +1373,7 @@ class BenchmarkReporter {
int64_t complexity_n; int64_t complexity_n;
// what statistics to compute from the measurements // what statistics to compute from the measurements
const std::vector<Statistics>* statistics; const std::vector<internal::Statistics>* statistics;
// Inform print function whether the current run is a complexity report // Inform print function whether the current run is a complexity report
bool report_big_o; bool report_big_o;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment