One line I know, maybe this is enough : >>> from qgis.utils import plugin_times >>> plugin_times
It's not using the profiler. Values are different from the Profiler, after a quick look... Le ven. 5 mai 2023 à 10:21, Michel Stuyts via QGIS-Developer < qgis-developer@lists.osgeo.org> a écrit : > I want to use the data on plugins from the Profiler. In the > “Debugging/Development Tools” Panel I can see both the total time for all > plugins and the individual time per plugin. With the following Python > code, I want to get the same data in Python: > > > > profiler = QgsApplication.profiler() > > for child in profiler.childGroups(): > > childGroup = profiler.childGroups(child) > > if child == 'Load plugins': > > print(child, profiler.profileTime(child)) > > for subGroup in childGroup: > > print(subGroup, profiler.profileTime(subGroup)) > > > > It shows the total time for all plugins just fine as “Load plugins” with > the same number of seconds as in the Panel, but for the individual plugins > I get 0.0 as time for all plugins. What do I do wrong or is it a bug? > > > > > > Michel Stuyts > _______________________________________________ > QGIS-Developer mailing list > QGIS-Developer@lists.osgeo.org > List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer > Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer >
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer