Add timing to outline build

This commit is contained in:
Veronica Berglyd Olsen
2024-11-08 00:34:21 +01:00
parent cd9e0de9dd
commit b39b37fb2f
+2
View File
@@ -663,6 +663,7 @@ class GuiOutlineTree(QTreeWidget):
is fast and doesn't require a rebuild of the tree.
"""
logger.debug("Rebuilding Outline tree")
tStart = time()
self.clear()
if self._firstView:
@@ -735,6 +736,7 @@ class GuiOutlineTree(QTreeWidget):
self.addTopLevelItem(item)
self._lastBuild = time()
logger.debug("Project outline built in %.3f ms", 1000.0*(time() - tStart))
return