diff options
-rw-r--r-- | sources/shiboken2/ApiExtractor/reporthandler.cpp | 5 | ||||
-rw-r--r-- | sources/shiboken2/ApiExtractor/reporthandler.h | 1 | ||||
-rw-r--r-- | sources/shiboken2/ApiExtractor/tests/testutil.h | 1 |
3 files changed, 7 insertions, 0 deletions
diff --git a/sources/shiboken2/ApiExtractor/reporthandler.cpp b/sources/shiboken2/ApiExtractor/reporthandler.cpp index c0c323029..ee70a8e9b 100644 --- a/sources/shiboken2/ApiExtractor/reporthandler.cpp +++ b/sources/shiboken2/ApiExtractor/reporthandler.cpp @@ -62,6 +62,11 @@ Q_LOGGING_CATEGORY(lcShiboken, "qt.shiboken") void ReportHandler::install() { qInstallMessageHandler(ReportHandler::messageOutput); + startTimer(); +} + +void ReportHandler::startTimer() +{ m_timer.start(); } diff --git a/sources/shiboken2/ApiExtractor/reporthandler.h b/sources/shiboken2/ApiExtractor/reporthandler.h index 08ab7d23c..073586055 100644 --- a/sources/shiboken2/ApiExtractor/reporthandler.h +++ b/sources/shiboken2/ApiExtractor/reporthandler.h @@ -40,6 +40,7 @@ public: enum DebugLevel { NoDebug, SparseDebug, MediumDebug, FullDebug }; static void install(); + static void startTimer(); static DebugLevel debugLevel(); static void setDebugLevel(DebugLevel level); diff --git a/sources/shiboken2/ApiExtractor/tests/testutil.h b/sources/shiboken2/ApiExtractor/tests/testutil.h index 9a2faad5c..e24e54365 100644 --- a/sources/shiboken2/ApiExtractor/tests/testutil.h +++ b/sources/shiboken2/ApiExtractor/tests/testutil.h @@ -44,6 +44,7 @@ namespace TestUtil const QStringList &dropTypeEntries = QStringList()) { ReportHandler::setSilent(silent); + ReportHandler::startTimer(); TypeDatabase* td = TypeDatabase::instance(true); if (apiVersion.isEmpty()) TypeDatabase::clearApiVersions(); |