1
0
mirror of https://github.com/google/benchmark.git synced 2025-04-17 23:12:30 +08:00

Remove public declaration for compute stats

This commit is contained in:
Eric Fiselier 2015-03-03 14:17:47 -05:00
parent 5e03e487ae
commit 09885baa82
2 changed files with 7 additions and 12 deletions
include/benchmark
src

View File

@ -198,12 +198,6 @@ void RunMatchingBenchmarks(const std::string& spec,
void FindMatchingBenchmarkNames(const std::string& re,
std::vector<std::string>* benchmark_names);
// Given a collection of reports, computes their mean and stddev.
// REQUIRES: all runs in "reports" must be from the same benchmark.
void ComputeStats(const std::vector<BenchmarkReporter::Run>& reports,
BenchmarkReporter::Run* mean_data,
BenchmarkReporter::Run* stddev_data);
// Simple reporter that outputs benchmark data to the console. This is the
// default reporter used by RunSpecifiedBenchmarks().
class ConsoleReporter : public BenchmarkReporter {

View File

@ -645,11 +645,6 @@ void RunBenchmark(const benchmark::Benchmark::Instance& b,
}
}
} // namespace
BenchmarkReporter::~BenchmarkReporter() {}
void ComputeStats(const std::vector<BenchmarkReporter::Run>& reports,
BenchmarkReporter::Run* mean_data,
@ -705,6 +700,12 @@ void ComputeStats(const std::vector<BenchmarkReporter::Run>& reports,
}
} // namespace
BenchmarkReporter::~BenchmarkReporter() {}
bool ConsoleReporter::ReportContext(const Context& context) {
name_field_width_ = context.name_field_width;
@ -760,7 +761,7 @@ void ConsoleReporter::ReportRuns(
Run mean_data;
Run stddev_data;
benchmark::ComputeStats(reports, &mean_data, &stddev_data);
ComputeStats(reports, &mean_data, &stddev_data);
// Output using PrintRun.
PrintRunData(mean_data);