Skip to content

Commit 175910c

Browse files
committedMay 18, 2020
More startup profile logging of plugin load times
1 parent c6690c2 commit 175910c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/app/qgspluginregistry.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ void QgsPluginRegistry::loadPythonPlugin( const QString &packageName )
304304
return;
305305
}
306306

307+
QgsScopedRuntimeProfile profile( packageName );
307308
mPythonUtils->loadPlugin( packageName );
308309
mPythonUtils->startPlugin( packageName );
309310

@@ -337,6 +338,8 @@ void QgsPluginRegistry::loadCppPlugin( const QString &fullPathName )
337338
return;
338339
}
339340

341+
QgsScopedRuntimeProfile profile( baseName );
342+
340343
QLibrary myLib( fullPathName );
341344

342345
QString myError; //we will only show detailed diagnostics if something went wrong
@@ -483,6 +486,8 @@ void QgsPluginRegistry::restoreSessionPlugins( const QString &pluginDirString )
483486
{
484487
QgsSettings mySettings;
485488

489+
QgsScopedRuntimeProfile profile( QObject::tr( "Load plugins" ) );
490+
486491
#if defined(Q_OS_WIN) || defined(__CYGWIN__)
487492
QString pluginExt = "*.dll";
488493
#elif ANDROID

0 commit comments

Comments
 (0)
Please sign in to comment.