diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 18:30:53 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-05 18:30:53 +0900 |
commit | 9a3a7e39cb8e88ddfd929647325dc919d0a02a1b (patch) | |
tree | 6c7ed45170e2c058a49df1ad07ce56e32a98ab1a /connection.cpp | |
parent | 5c4238d43acfd5bbd5d3c387a4705348de490fe0 (diff) | |
download | libquotient-9a3a7e39cb8e88ddfd929647325dc919d0a02a1b.tar.gz libquotient-9a3a7e39cb8e88ddfd929647325dc919d0a02a1b.zip |
Profile-log if saving state has been interrupted by processEvents for long enough
Diffstat (limited to 'connection.cpp')
-rw-r--r-- | connection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/connection.cpp b/connection.cpp index 80685dd1..7ba11145 100644 --- a/connection.cpp +++ b/connection.cpp @@ -675,7 +675,10 @@ void Connection::saveState(const QUrl &toFile) const inviteRooms.insert(i->id(), i->toJson()); else rooms.insert(i->id(), i->toJson()); + QElapsedTimer et1; et1.start(); QCoreApplication::processEvents(); + if (et1.elapsed() > 1) + qCDebug(PROFILER) << "processEvents() borrowed" << et1; } if (!rooms.isEmpty()) |