Skip to main content
100%

Gist eafff0441de1209802edaacd56203985

✓ Published0🌍 Public
TThomasG77
Last edited Apr 14, 2023
Created on Apr 14, 2023

This example visualizes the hierarchical timing profile of a QGIS application, rendering each profiler entry as a node with its name and measured duration. It extracts the profiler tree via the QGIS `QgsApplication.profiler()` API, iterating rows and columns to build nested parent-child relationships. The code uses Python’s `json` module to serialize the resulting structure into a JSON file, preserving two levels of detail with child arrays. The visualization itself is not rendered here; only the data extraction and export to `/tmp/tree.json` are demonstrated.

AI-generated description

Similar vizzes