Add memory usage debug info for status bar

This commit is contained in:
Veronica Berglyd Olsen
2023-11-28 16:44:01 +01:00
parent ff7f27ff97
commit 83c9fb96e9
5 changed files with 37 additions and 4 deletions
+2
View File
@@ -1321,6 +1321,8 @@ class GuiMain(QMainWindow):
self.mainStatus.setUserIdle(editIdle or userIdle)
SHARED.updateIdleTime(currTime, editIdle or userIdle)
self.mainStatus.updateTime(idleTime=SHARED.projectIdleTime)
if CONFIG.memInfo and int(currTime) % 5 == 0: # pragma: no cover
self.mainStatus.memInfo()
return
@pyqtSlot()