Commit 0f6bc7a3 authored by Songqiao Su's avatar Songqiao Su Committed by Facebook Github Bot

(folly/benchmark)(easy) fix Android build broken

Reviewed By: mzlee

Differential Revision: D13425495

fbshipit-source-id: 9955ae6d59b0604f1e106fef0f0fccca1093e5f4
parent 5f3b2b63
...@@ -381,8 +381,10 @@ void benchmarkResultsFromDynamic( ...@@ -381,8 +381,10 @@ void benchmarkResultsFromDynamic(
const dynamic& d, const dynamic& d,
vector<detail::BenchmarkResult>& results) { vector<detail::BenchmarkResult>& results) {
for (auto& datum : d) { for (auto& datum : d) {
results.push_back( results.push_back({datum[0].asString(),
{datum[0].asString(), datum[1].asString(), datum[2].asDouble(), {}}); datum[1].asString(),
datum[2].asDouble(),
UserCounters{}});
} }
} }
......
...@@ -187,7 +187,7 @@ addBenchmark(const char* file, const char* name, Lambda&& lambda) { ...@@ -187,7 +187,7 @@ addBenchmark(const char* file, const char* name, Lambda&& lambda) {
auto end = std::chrono::high_resolution_clock::now(); auto end = std::chrono::high_resolution_clock::now();
// CORE MEASUREMENT ENDS // CORE MEASUREMENT ENDS
return detail::TimeIterData{ return detail::TimeIterData{
(end - start) - BenchmarkSuspender::timeSpent, niter, {}}; (end - start) - BenchmarkSuspender::timeSpent, niter, UserCounters{}};
}; };
detail::addBenchmarkImpl(file, name, detail::BenchmarkFun(execute), false); detail::addBenchmarkImpl(file, name, detail::BenchmarkFun(execute), false);
......
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