19

We have new users of QGIS in our office that are dismayed immediately by the startup time of QGIS - which hangs on the 'Restoring Loaded Plugins' message on the splash screen.

Is there a way to tell which plugins take long to load and are causing QGIS to load slowly? This can sometimes take ~1minute!

The only solution so far is to disable almost every plugin that comes with the default installation and bring back the plugins one by one as you need them - but so far we haven't figured out which default plugin is causing the slow load time.

26

Hidden feature that I never made a UI for

import pprint
pprint.pprint(qgis.utils.plugin_times)

Run it in the Python console

Also see the plugin called Plugin Load Times: (https://github.com/mstuyts/Plugin-Load-Times)

  • 4
    +1, would love to see a button for this somewhere in the UI of Manage and Install Plugins... > Settings :) – Joseph Sep 1 '16 at 15:08
  • 3
    @Nathan W: I wanted to sort the results, so i gave it a try: gist.github.com/neogis-de/3dfa66180c3506cb0d87f40895ba36c0 – Thomas B Sep 1 '16 at 20:37
  • 2
    In 2.16 there is also a runtime profiler class which which times other parts of the code, mainly the load times. I will look at making a report interface for them all. – Nathan W Sep 1 '16 at 23:38
  • A timely answer to a question that has been bugging me too. Perhaps a gui for it is now timely? – Johanna Sep 6 '16 at 22:30
  • I wonder if there is also a way to measure how long each layer takes to load? – markgraeflerland Sep 30 '16 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.