Skip to content

Instantly share code, notes, and snippets.

@neogis-de
Last active November 15, 2016 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save neogis-de/3dfa66180c3506cb0d87f40895ba36c0 to your computer and use it in GitHub Desktop.
Save neogis-de/3dfa66180c3506cb0d87f40895ba36c0 to your computer and use it in GitHub Desktop.
sort_qgis_plugin_loading_times
import pprint
import operator
plugin_load_times= qgis.utils.plugin_times
sorted_load_times = sorted(plugin_load_times.items(), key=operator.itemgetter(1))
pprint.pprint(sorted_load_times)
# in addition to: https://gis.stackexchange.com/questions/209129/how-to-tell-which-qgis-plugins-are-slow-to-load?stw=2
# helpt to sort dictionary from: https://stackoverflow.com/questions/613183/sort-a-python-dictionary-by-value
@dpsspatial
Copy link

This works great! I will use this for more troubleshooting... Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment