Added a few profiling decorators to expensive methods

This commit is contained in:
Jaime van Kessel 2017-05-10 10:45:07 +02:00
parent 9a387f9ee2
commit 42fc703516
2 changed files with 4 additions and 1 deletions

View file

@ -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