Checker: Add timer on mage checker.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-06-23 14:30:23 +02:00
1 parent 4416f0d37e
commit dc78998bf6
1 file changed
+3 -1
+3 -1
View File
@@ -3,7 +3,7 @@
import time
from queue import Queue
from tools import flatten
from tools import flatten, timer
from PyQt5.QtCore import QCoreApplication
@@ -25,6 +25,7 @@ class MageNetworkGraphChecker(AbstractModelChecker):
self._name = _translate("Checker", f"Mage network graph {mode} checker")
self._description = _translate("Checker", "Check if the network graph is valid")
@timer
def _connectivity(self, summary, status, graph):
# Keep only enabled edges
edges = list(
@@ -91,6 +92,7 @@ class MageNetworkGraphChecker(AbstractModelChecker):
return summary, status
@timer
def _cycle(self, summary, status, graph):
# Keep only enabled edges
edges = list(