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-19 08:41:36 +0900
commite5175246c809695dff2aff4b50f4ac5c0e6c2f46 (patch)
tree3a64146ef5427d3374085b79cc10e0782cdd91f8 /lib/logging.h
parentbbfdedbc941e3eb53252ce7144fac787e64a6c2e (diff)
downloadlibquotient-e5175246c809695dff2aff4b50f4ac5c0e6c2f46.tar.gz
libquotient-e5175246c809695dff2aff4b50f4ac5c0e6c2f46.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)