summaryrefslogtreecommitdiffstats
path: root/tests/mailquerybenchmark.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 18:22:39 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-12-22 18:22:39 +0100
commitb2ad8f785e801a35cadf254d827f56d648be510c (patch)
tree4eeb1e3eefb02c40dac40469c0fae5ad91feb3e3 /tests/mailquerybenchmark.cpp
parent1fe8664ec74165fc3f250098609ea0e049e3adc8 (diff)
downloadsink-b2ad8f785e801a35cadf254d827f56d648be510c.tar.gz
sink-b2ad8f785e801a35cadf254d827f56d648be510c.zip
Introduced Log::Context
To have hierarchical debug output we have to pass around something at run-time, there is no reasonable alternative. Log::Context provides the identifier to do just that and largely replaces the debug component idea.
Diffstat (limited to 'tests/mailquerybenchmark.cpp')
-rw-r--r--tests/mailquerybenchmark.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/mailquerybenchmark.cpp b/tests/mailquerybenchmark.cpp
index d3598b2..e55e744 100644
--- a/tests/mailquerybenchmark.cpp
+++ b/tests/mailquerybenchmark.cpp
@@ -84,7 +84,6 @@ class MailQueryBenchmark : public QObject
84 { 84 {
85 const auto startingRss = getCurrentRSS(); 85 const auto startingRss = getCurrentRSS();
86 86
87
88 // Benchmark 87 // Benchmark
89 QTime time; 88 QTime time;
90 time.start(); 89 time.start();
@@ -93,7 +92,7 @@ class MailQueryBenchmark : public QObject
93 context.mResourceAccess = QSharedPointer<TestResourceAccess>::create(); 92 context.mResourceAccess = QSharedPointer<TestResourceAccess>::create();
94 TestMailResourceFacade facade(context); 93 TestMailResourceFacade facade(context);
95 94
96 auto ret = facade.load(query); 95 auto ret = facade.load(query, Sink::Log::Context{"benchmark"});
97 ret.first.exec().waitForFinished(); 96 ret.first.exec().waitForFinished();
98 auto emitter = ret.second; 97 auto emitter = ret.second;
99 QList<Mail::Ptr> list; 98 QList<Mail::Ptr> list;