Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
More startup profile logging of plugin load times
  • Loading branch information
nyalldawson committed May 18, 2020
1 parent c6690c2 commit 175910c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgspluginregistry.cpp
Expand Up @@ -304,6 +304,7 @@ void QgsPluginRegistry::loadPythonPlugin( const QString &packageName )
return;
}

QgsScopedRuntimeProfile profile( packageName );
mPythonUtils->loadPlugin( packageName );
mPythonUtils->startPlugin( packageName );

Expand Down Expand Up @@ -337,6 +338,8 @@ void QgsPluginRegistry::loadCppPlugin( const QString &fullPathName )
return;
}

QgsScopedRuntimeProfile profile( baseName );

QLibrary myLib( fullPathName );

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

QgsScopedRuntimeProfile profile( QObject::tr( "Load plugins" ) );

#if defined(Q_OS_WIN) || defined(__CYGWIN__)
QString pluginExt = "*.dll";
#elif ANDROID
Expand Down

0 comments on commit 175910c

Please sign in to comment.