mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
feat(tracker): show CPU load percentage in the song panel
This commit is contained in:
parent
1a13fadd75
commit
340620ed49
@ -69,6 +69,7 @@ type (
|
||||
linkInstrTrack bool
|
||||
|
||||
voiceLevels [vm.MAX_VOICES]float32
|
||||
cpuLoad float64
|
||||
|
||||
signalAnalyzer *ScopeModel
|
||||
detectorResult DetectorResult
|
||||
@ -343,6 +344,7 @@ func (m *Model) ProcessMsg(msg MsgToModel) {
|
||||
}))
|
||||
}
|
||||
m.panic = msg.Panic
|
||||
m.cpuLoad = msg.CPULoad
|
||||
}
|
||||
if msg.HasDetectorResult {
|
||||
m.detectorResult = msg.DetectorResult
|
||||
@ -377,6 +379,8 @@ func (m *Model) ProcessMsg(msg MsgToModel) {
|
||||
}
|
||||
}
|
||||
|
||||
func (m *Model) CPULoad() float64 { return m.cpuLoad }
|
||||
|
||||
func (m *Model) SignalAnalyzer() *ScopeModel { return m.signalAnalyzer }
|
||||
func (m *Model) Broker() *Broker { return m.broker }
|
||||
|
||||
|
Reference in New Issue
Block a user