aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarkrunner.cpp
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@crimson.no>2017-03-31 10:41:59 +0200
committerRobin Burchell <robin.burchell@crimson.no>2017-04-04 14:16:10 +0000
commit1d6b8388e7c4c18926c8da0047bf55ff5baf86f6 (patch)
tree653407df732e854d0234fb6b8f3953ecef53242f /src/benchmarkrunner.cpp
parent9359a76d45074eb675e71a50c00c9d50d6477bb0 (diff)
Don't pass benchmark to BM runner
It can work it out itself. This will make subsequent timing changes cleaner. Change-Id: Iff7a6abc080952180d51ec39576688b203be1fcc Reviewed-by: Gunnar Sletta <gunnar@crimson.no>
Diffstat (limited to 'src/benchmarkrunner.cpp')
-rw-r--r--src/benchmarkrunner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/benchmarkrunner.cpp b/src/benchmarkrunner.cpp
index 839c506..79e65da 100644
--- a/src/benchmarkrunner.cpp
+++ b/src/benchmarkrunner.cpp
@@ -137,7 +137,7 @@ void BenchmarkRunner::recordOperationsPerFrame(qreal ops)
{
Benchmark &bm = Options::instance.benchmarks.first();
bm.operationsPerFrame << ops;
- ResultRecorder::recordOperationsPerFrame(bm.fileName, ops);
+ ResultRecorder::recordOperationsPerFrame(ops);
QList<qreal> results = bm.operationsPerFrame;
qreal avg = average(results);
@@ -145,7 +145,7 @@ void BenchmarkRunner::recordOperationsPerFrame(qreal ops)
if (results.size() >= Options::instance.repeat) {
std::sort(results.begin(), results.end());
qreal median = results.at(results.size() / 2);
- ResultRecorder::recordOperationsPerFrameAverage(bm.fileName, avg, bm.operationsPerFrame.size(), stddev(avg, results), median);
+ ResultRecorder::recordOperationsPerFrameAverage(avg, bm.operationsPerFrame.size(), stddev(avg, results), median);
}
m_component->deleteLater();