mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07:28 -06:00
CURA-4785 added logging for measuring time for validation check
This commit is contained in:
parent
3fb9877a30
commit
dc119d74bd
1 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
# Copyright (c) 2017 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import time
|
||||
#Type hinting.
|
||||
from typing import Union, List, Dict
|
||||
|
||||
|
@ -390,6 +391,7 @@ class MachineManager(QObject):
|
|||
Logger.log("w", "Failed creating a new machine!")
|
||||
|
||||
def _checkStacksHaveErrors(self) -> bool:
|
||||
time_start = time.time()
|
||||
if self._global_container_stack is None: #No active machine.
|
||||
return False
|
||||
|
||||
|
@ -405,6 +407,7 @@ class MachineManager(QObject):
|
|||
if stack.hasErrors():
|
||||
return True
|
||||
|
||||
Logger.log("d", "Checking stacks for errors took %.2f s" % (time.time() - time_start))
|
||||
return False
|
||||
|
||||
## Remove all instances from the top instanceContainer (effectively removing all user-changed settings)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue