Remove dead code, tidy output

This commit is contained in:
Dominic Hamon 2014-01-07 13:45:50 -08:00
parent e5f5a0d30e
commit fc52b86270

View File

@ -341,10 +341,8 @@ void ConsoleReporter::ReportRuns(const std::vector<BenchmarkRunData>& reports) {
BenchmarkRunData stddev_data; BenchmarkRunData stddev_data;
internal::ComputeStats(reports, &mean_data, &stddev_data); internal::ComputeStats(reports, &mean_data, &stddev_data);
// Output using PrintRun.
PrintRunData(mean_data); PrintRunData(mean_data);
PrintRunData(stddev_data); PrintRunData(stddev_data);
fprintf(stdout, "\n");
} }
void ConsoleReporter::PrintRunData(const BenchmarkRunData& result) { void ConsoleReporter::PrintRunData(const BenchmarkRunData& result) {
@ -1141,16 +1139,9 @@ void RunMatchingBenchmarks(const std::string& spec,
context.cpu_scaling_enabled = CpuScalingEnabled(); context.cpu_scaling_enabled = CpuScalingEnabled();
context.name_field_width = name_field_width; context.name_field_width = name_field_width;
if (reporter->ReportContext(context)) { if (reporter->ReportContext(context))
for (internal::Benchmark::Instance& benchmark : benchmarks) { for (internal::Benchmark::Instance& benchmark : benchmarks)
//std::unique_ptr<thread::ThreadPool> pool; Benchmark::RunInstance(benchmark, reporter);
//if (benchmark.threads > 0) {
// pool = new thread::ThreadPool(benchmark.threads);
// pool->StartWorkers();
//}
Benchmark::RunInstance(/*pool, */benchmark, reporter);
}
}
} }
void FindMatchingBenchmarkNames(const std::string& spec, void FindMatchingBenchmarkNames(const std::string& spec,