summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAL <26797547+Al12rs@users.noreply.github.com>2020-06-07 21:06:33 +0200
committerAL <26797547+Al12rs@users.noreply.github.com>2020-06-07 21:06:33 +0200
commit6d7c0866859a0fe27a8055068552470b67d680e3 (patch)
treeed5e246ffe05f4e1096fabacf2f7640cfda19a86 /src
parentd845fe9a74c9e0943defe5025b81c017a3fab41b (diff)
Change time measurement to not include lock wait time.
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 1a868eec..c3a19bf4 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1106,8 +1106,6 @@ QFuture<void> MainWindow::checkForProblemsAsync() {
void MainWindow::checkForProblemsImpl()
{
- TimeThis tt("MainWindow::checkForProblemsImpl()");
-
m_ProblemsCheckRequired = true;
std::scoped_lock lk(m_CheckForProblemsMutex);
@@ -1115,6 +1113,7 @@ void MainWindow::checkForProblemsImpl()
// another thread might already have checked while this one was waiting on the lock
if (m_ProblemsCheckRequired) {
m_ProblemsCheckRequired = false;
+ TimeThis tt("MainWindow::checkForProblemsImpl()");
size_t numProblems = 0;
for (QObject *pluginObj : m_PluginContainer.plugins<QObject>()) {
IPlugin *plugin = qobject_cast<IPlugin*>(pluginObj);