25

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.

1 Answer 1

37

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://gitlab.com/GIS-projects/Plugin-Load-Times)

11
  • 6
    +1, would love to see a button for this somewhere in the UI of Manage and Install Plugins... > Settings :)
    – Joseph
    Commented Sep 1, 2016 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
    Commented Sep 1, 2016 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
    Commented Sep 1, 2016 at 23:38
  • A timely answer to a question that has been bugging me too. Perhaps a gui for it is now timely?
    – Johanna
    Commented Sep 6, 2016 at 22:30
  • I wonder if there is also a way to measure how long each layer takes to load?
    – Thomas B
    Commented Sep 30, 2016 at 5:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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