summaryrefslogtreecommitdiffstats
path: root/src/testlib/qcsvbenchmarklogger.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2022-10-21 11:56:37 -0700
committerThiago Macieira <thiago.macieira@intel.com>2022-11-09 02:18:44 -0700
commitb5b00e77906af0ebc848d9244fab816bd1c9afcc (patch)
tree4bf3a3e48fb832010c1a8c66210ad96d79722273 /src/testlib/qcsvbenchmarklogger.cpp
parent985b94215276eebf4acdd2625829d90a27213d64 (diff)
QBenchlib: use QBenchmarkMeasurerBase::Measurement in QBenchmarkResult
Change-Id: I3c79b7e08fa346988dfefffd17202a818cde1d84 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/testlib/qcsvbenchmarklogger.cpp')
-rw-r--r--src/testlib/qcsvbenchmarklogger.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testlib/qcsvbenchmarklogger.cpp b/src/testlib/qcsvbenchmarklogger.cpp
index 1514936a1dd..d4de8f08b7e 100644
--- a/src/testlib/qcsvbenchmarklogger.cpp
+++ b/src/testlib/qcsvbenchmarklogger.cpp
@@ -57,13 +57,14 @@ void QCsvBenchmarkLogger::addBenchmarkResult(const QBenchmarkResult &result)
: "";
const char *filler = (tag[0] && gtag[0]) ? ":" : "";
- const char *metric = QTest::benchmarkMetricName(result.metric);
+ const char *metric = QTest::benchmarkMetricName(result.measurement.metric);
char buf[1024];
// "function","[globaltag:]tag","metric",value_per_iteration,total,iterations
qsnprintf(buf, sizeof(buf), "\"%s\",\"%s%s%s\",\"%s\",%.13g,%.13g,%u\n",
fn, gtag, filler, tag, metric,
- result.value / result.iterations, result.value, result.iterations);
+ result.measurement.value / result.iterations,
+ result.measurement.value, result.iterations);
outputString(buf);
}