aboutsummaryrefslogtreecommitdiff
path: root/lib/logging.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-04 19:55:20 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-11-04 19:55:20 +0900
commit23ebed25b79f4b6edf630546d7d9d571398a1640 (patch)
tree9c233da50e9199f93b67d7f38c4ec5973e479fe0 /lib/logging.h
parent6dd950637d0c90c7540cd64b2eb002f1414389a5 (diff)
downloadlibquotient-23ebed25b79f4b6edf630546d7d9d571398a1640.tar.gz
libquotient-23ebed25b79f4b6edf630546d7d9d571398a1640.zip
Profiler logging fixes and improvements
Diffstat (limited to 'lib/logging.h')
-rw-r--r--lib/logging.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/logging.h b/lib/logging.h
index 8dbfdf30..6c93ca79 100644
--- a/lib/logging.h
+++ b/lib/logging.h
@@ -65,6 +65,17 @@ namespace QMatrixClient
{
return qdm(debug_object);
}
+
+ inline qint64 profilerMinNsecs()
+ {
+ return
+ #ifdef PROFILER_LOG_MIN_MS
+ PROFILER_LOG_MIN_MS
+ #else
+ 200
+ #endif
+ * 1000;
+ }
}
inline QDebug operator<< (QDebug debug_object, const QElapsedTimer& et)