Changeset - 8e2d456b3612
[Not reviewed]
default
0 2 0
Drew Perttula - 6 years ago 2019-06-06 11:59:07
drewp@bigasterisk.com
fix some stats and logging
Ignore-this: d5ed651e17695eaea4e599d5dfaf3b0a
2 files changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
light9/collector/collector_client.py
Show inline comments
 
@@ -11,7 +11,7 @@ log = logging.getLogger('coll_client')
 
_zmqClient = None
 

	
 
stats = scales.collection(
 
    '/collectorClient/',
 
    '/collectorClient',
 
    scales.PmfStat('send', recalcPeriod=1),
 
)
 

	
light9/effect/sequencer.py
Show inline comments
 
@@ -30,7 +30,7 @@ log = logging.getLogger('sequencer')
 

	
 
gatherProcessStats()
 
updateStats = scales.collection(
 
    '/update/',
 
    '/update',
 
    scales.PmfStat('s0_getMusic', recalcPeriod=1),
 
    scales.PmfStat('s1_eval', recalcPeriod=1),
 
    #scales.PmfStat('s3_send_client', recalcPeriod=1),
 
@@ -41,7 +41,7 @@ updateStats = scales.collection(
 
    scales.DoubleStat('goalFps'),
 
)
 
compileStats = scales.collection(
 
    '/compile/',
 
    '/compile',
 
    scales.PmfStat('graph', recalcPeriod=1),
 
    scales.PmfStat('song', recalcPeriod=1),
 
)
 
@@ -252,7 +252,11 @@ class Sequencer(object):
 
                               key=lambda n: n.uri)
 
            noteReports = []
 
            for note in songNotes:
 
                try:
 
                s, report = note.outputSettings(musicState['t'])
 
                except Exception:
 
                    traceback.print_exc()
 
                    raise
 
                noteReports.append(report)
 
                settings.append(s)
 
            devSettings = DeviceSettings.fromList(self.graph, settings)
0 comments (0 inline, 0 general)