mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Added a few profiling decorators to expensive methods
This commit is contained in:
parent
9a387f9ee2
commit
42fc703516
2 changed files with 4 additions and 1 deletions
|
@ -5,7 +5,7 @@ from PyQt5.QtCore import Qt, pyqtSignal, pyqtProperty, QTimer
|
|||
|
||||
import UM.Qt.ListModel
|
||||
from UM.Application import Application
|
||||
|
||||
import UM.FlameProfiler
|
||||
from cura.Settings.ExtruderManager import ExtruderManager
|
||||
|
||||
## Model that holds extruders.
|
||||
|
@ -129,6 +129,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||
## Update the list of extruders.
|
||||
#
|
||||
# This should be called whenever the list of extruders changes.
|
||||
@UM.FlameProfiler.profile
|
||||
def __updateExtruders(self):
|
||||
changed = False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue