Add timing to outline build
This commit is contained in:
@@ -663,6 +663,7 @@ class GuiOutlineTree(QTreeWidget):
|
|||||||
is fast and doesn't require a rebuild of the tree.
|
is fast and doesn't require a rebuild of the tree.
|
||||||
"""
|
"""
|
||||||
logger.debug("Rebuilding Outline tree")
|
logger.debug("Rebuilding Outline tree")
|
||||||
|
tStart = time()
|
||||||
self.clear()
|
self.clear()
|
||||||
|
|
||||||
if self._firstView:
|
if self._firstView:
|
||||||
@@ -735,6 +736,7 @@ class GuiOutlineTree(QTreeWidget):
|
|||||||
self.addTopLevelItem(item)
|
self.addTopLevelItem(item)
|
||||||
|
|
||||||
self._lastBuild = time()
|
self._lastBuild = time()
|
||||||
|
logger.debug("Project outline built in %.3f ms", 1000.0*(time() - tStart))
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user