Checker: Add timer on mage checker.

mesh
Pierre-Antoine Rouby 2023-06-23 14:30:23 +02:00
parent 4416f0d37e
commit dc78998bf6
1 changed files with 3 additions and 1 deletions

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(