Skip to content
Permalink
Browse files

More startup profile logging of plugin load times

  • Loading branch information
nyalldawson committed May 18, 2020
1 parent c6690c2 commit 175910c6e4b137129d7f242db0d011e2c88b64a9
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgspluginregistry.cpp
@@ -304,6 +304,7 @@ void QgsPluginRegistry::loadPythonPlugin( const QString &packageName )
return;
}

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

@@ -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
@@ -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

0 comments on commit 175910c

Please sign in to comment.
You can’t perform that action at this time.