mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Add some profiling decorators to the ContainerTree
This commit is contained in:
parent
71e9fb8a22
commit
85ed22de4c
6 changed files with 15 additions and 3 deletions
|
@ -6,12 +6,13 @@ from typing import Union, TYPE_CHECKING
|
|||
from UM.Settings.ContainerRegistry import ContainerRegistry
|
||||
from cura.Machines.ContainerNode import ContainerNode
|
||||
from cura.Machines.IntentNode import IntentNode
|
||||
|
||||
import UM.FlameProfiler
|
||||
if TYPE_CHECKING:
|
||||
from typing import Dict
|
||||
from cura.Machines.MaterialNode import MaterialNode
|
||||
from cura.Machines.MachineNode import MachineNode
|
||||
|
||||
|
||||
## Represents a quality profile in the container tree.
|
||||
#
|
||||
# This may either be a normal quality profile or a global quality profile.
|
||||
|
@ -29,6 +30,7 @@ class QualityNode(ContainerNode):
|
|||
self._material = my_metadata.get("material")
|
||||
self._loadAll()
|
||||
|
||||
@UM.FlameProfiler.profile
|
||||
def _loadAll(self) -> None:
|
||||
container_registry = ContainerRegistry.getInstance()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue