From 23ebed25b79f4b6edf630546d7d9d571398a1640 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 4 Nov 2018 19:55:20 +0900 Subject: Profiler logging fixes and improvements --- lib/logging.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/logging.h') 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) -- cgit v1.2.3