diff options
-rw-r--r-- | tests/hawd/formatter.cpp | 3 | ||||
-rw-r--r-- | tests/storagebenchmark.cpp | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/hawd/formatter.cpp b/tests/hawd/formatter.cpp index 9328d44..6d1f6de 100644 --- a/tests/hawd/formatter.cpp +++ b/tests/hawd/formatter.cpp | |||
@@ -36,12 +36,11 @@ void Formatter::print(const QString &datasetName, const QStringList &cols, State | |||
36 | std::cout << QObject::tr("The dataset %1 could not be loaded; try checking it with the check command").arg(datasetName).toStdString() << std::endl; | 36 | std::cout << QObject::tr("The dataset %1 could not be loaded; try checking it with the check command").arg(datasetName).toStdString() << std::endl; |
37 | return; | 37 | return; |
38 | } | 38 | } |
39 | print(dataset); | 39 | print(dataset, cols); |
40 | } | 40 | } |
41 | 41 | ||
42 | void Formatter::print(Dataset &dataset, const QStringList &cols) | 42 | void Formatter::print(Dataset &dataset, const QStringList &cols) |
43 | { | 43 | { |
44 | QStringList cols; | ||
45 | std::cout << dataset.tableHeaders(cols).toStdString() << std::endl; | 44 | std::cout << dataset.tableHeaders(cols).toStdString() << std::endl; |
46 | dataset.eachRow( | 45 | dataset.eachRow( |
47 | [cols](const Dataset::Row &row) { | 46 | [cols](const Dataset::Row &row) { |
diff --git a/tests/storagebenchmark.cpp b/tests/storagebenchmark.cpp index 503c3b9..4f6449b 100644 --- a/tests/storagebenchmark.cpp +++ b/tests/storagebenchmark.cpp | |||
@@ -3,6 +3,7 @@ | |||
3 | #include "calendar_generated.h" | 3 | #include "calendar_generated.h" |
4 | 4 | ||
5 | #include "hawd/dataset.h" | 5 | #include "hawd/dataset.h" |
6 | #include "hawd/formatter.h" | ||
6 | #include "common/storage.h" | 7 | #include "common/storage.h" |
7 | 8 | ||
8 | #include <iostream> | 9 | #include <iostream> |
@@ -139,7 +140,7 @@ private Q_SLOTS: | |||
139 | row.setValue("read", readOpsPerMs); | 140 | row.setValue("read", readOpsPerMs); |
140 | row.setValue("readOps", readOpsPerMs); | 141 | row.setValue("readOps", readOpsPerMs); |
141 | dataset.insertRow(row); | 142 | dataset.insertRow(row); |
142 | qDebug() << "Reading took[ms]: " << readDuration << "->" << readOpsPerMs << "ops/ms"; | 143 | HAWD::Formatter::print(dataset); |
143 | } else { | 144 | } else { |
144 | qDebug() << "File reading is not implemented."; | 145 | qDebug() << "File reading is not implemented."; |
145 | } | 146 | } |
@@ -199,7 +200,7 @@ private Q_SLOTS: | |||
199 | row.setValue("time", bufferDuration); | 200 | row.setValue("time", bufferDuration); |
200 | row.setValue("ops", opsPerMs); | 201 | row.setValue("ops", opsPerMs); |
201 | dataset.insertRow(row); | 202 | dataset.insertRow(row); |
202 | qDebug() << "Creating buffers took[ms]: " << bufferDuration << "->" << opsPerMs << "ops/ms"; | 203 | HAWD::Formatter::print(dataset); |
203 | } | 204 | } |
204 | 205 | ||
205 | void testSizes() | 206 | void testSizes() |