Mercurial > code > home > repos > light9
changeset 1960:8e2d456b3612
fix some stats and logging
Ignore-this: d5ed651e17695eaea4e599d5dfaf3b0a
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 06 Jun 2019 11:59:07 +0000 |
parents | 5633155c0300 |
children | f77dfa8e82b9 |
files | light9/collector/collector_client.py light9/effect/sequencer.py |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/light9/collector/collector_client.py Thu Jun 06 11:10:55 2019 +0000 +++ b/light9/collector/collector_client.py Thu Jun 06 11:59:07 2019 +0000 @@ -11,7 +11,7 @@ _zmqClient = None stats = scales.collection( - '/collectorClient/', + '/collectorClient', scales.PmfStat('send', recalcPeriod=1), )
--- a/light9/effect/sequencer.py Thu Jun 06 11:10:55 2019 +0000 +++ b/light9/effect/sequencer.py Thu Jun 06 11:59:07 2019 +0000 @@ -30,7 +30,7 @@ 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 @@ scales.DoubleStat('goalFps'), ) compileStats = scales.collection( - '/compile/', + '/compile', scales.PmfStat('graph', recalcPeriod=1), scales.PmfStat('song', recalcPeriod=1), ) @@ -252,7 +252,11 @@ key=lambda n: n.uri) noteReports = [] for note in songNotes: - s, report = note.outputSettings(musicState['t']) + 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)