From 2d1a34626fec7db18e7198aad9e2b2439e1bf186 Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Thu, 27 Apr 2017 13:16:49 +0100 Subject: [PATCH] Fixes #378 (hopefully). Unit tests for counters to follow. The problem was that the call to Finish() the user counters was lost in a big merge. If I had already written the tests for the user counters, this would probably have been catched earlier. --- src/benchmark.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/benchmark.cc b/src/benchmark.cc index 00ffa07f..8d3f406c 100644 --- a/src/benchmark.cc +++ b/src/benchmark.cc @@ -252,6 +252,7 @@ BenchmarkReporter::Run CreateRunReport( report.complexity = b.complexity; report.complexity_lambda = b.complexity_lambda; report.counters = results.counters; + internal::Finish(&report.counters, seconds, b.threads); } return report; }