diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-04 19:55:20 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-04 19:55:20 +0900 |
commit | 23ebed25b79f4b6edf630546d7d9d571398a1640 (patch) | |
tree | 9c233da50e9199f93b67d7f38c4ec5973e479fe0 /lib/jobs | |
parent | 6dd950637d0c90c7540cd64b2eb002f1414389a5 (diff) | |
download | libquotient-23ebed25b79f4b6edf630546d7d9d571398a1640.tar.gz libquotient-23ebed25b79f4b6edf630546d7d9d571398a1640.zip |
Profiler logging fixes and improvements
Diffstat (limited to 'lib/jobs')
-rw-r--r-- | lib/jobs/syncjob.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/jobs/syncjob.cpp b/lib/jobs/syncjob.cpp index 9cbac71b..6baf388e 100644 --- a/lib/jobs/syncjob.cpp +++ b/lib/jobs/syncjob.cpp @@ -109,11 +109,12 @@ BaseJob::Status SyncData::parseJson(const QJsonDocument &data) totalEvents += r.state.size() + r.ephemeral.size() + r.accountData.size() + r.timeline.size(); } - totalRooms += roomData.size(); + totalRooms += rs.size(); } - qCDebug(PROFILER) << "*** SyncData::parseJson(): batch with" - << totalRooms << "room(s)," - << totalEvents << "event(s) in" << et; + if (totalRooms > 9 || et.nsecsElapsed() >= profilerMinNsecs()) + qCDebug(PROFILER) << "*** SyncData::parseJson(): batch with" + << totalRooms << "room(s)," + << totalEvents << "event(s) in" << et; return BaseJob::Success; } |