Skip to content
7 changes: 7 additions & 0 deletions integration_tests/test_microcircuit.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
from spinnaker_testbase import ScriptChecker
import os
import stat
from spinn_front_end_common.utilities.report_functions.timer_report import (
timer_report_file)


class TestMicrocircuit(ScriptChecker):
Expand All @@ -34,3 +36,8 @@ def microcircuit(self):
result_path = os.path.join("results", result_file)
assert os.path.exists(result_path)
assert os.stat(result_path)[stat.ST_SIZE]

report = timer_report_file()
with open(report) as f:
message = f.read()
self.report(message, "microcircuit_timer.rpt")
8 changes: 8 additions & 0 deletions spynnaker.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,11 @@ drop_late_spikes = False

[Mode]
violate_1ms_wall_clock_restriction = True

[Reports]
write_timer_report = True
timer_report_to_stdout = False
# ratio of single Algorithm to total time to report algorithm
timer_report_ratio = 0.00
# min time to report algorithm even if less than ratio
timer_report_ms = 0