diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-10 00:48:36 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-08-10 00:48:36 +0200 |
commit | 9e39e9c72b05110a72ef4e84b4bec8bf3c2404f9 (patch) | |
tree | 2d104f48e243bd3496eeb6fbed359b79ac13c42c /tests/storagebenchmark.cpp | |
parent | 3b928327401547fe32e5b60d47fa772c0d12280d (diff) | |
download | sink-9e39e9c72b05110a72ef4e84b4bec8bf3c2404f9.tar.gz sink-9e39e9c72b05110a72ef4e84b4bec8bf3c2404f9.zip |
Use the HAWD::Formatter
Diffstat (limited to 'tests/storagebenchmark.cpp')
-rw-r--r-- | tests/storagebenchmark.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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() |