mirror of
https://github.com/google/benchmark.git
synced 2025-03-31 06:30:35 +08:00
Move Statistics struct to internal namespace (#753)
This commit is contained in:
parent
4b9f43e2c4
commit
785e2c3158
@ -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 {
|
|||||||
: 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 {
|
|||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user