spdl.utils.trace_counter¶
- trace_counter(i: int, val: int | float)[source]¶
Trace a counter value.
Note
Due to the compile-time restriction, there can be a fixed number of counter traces.
- Parameters:
i – The index of the counter. Must be [0, 7].
val – The value of the counter.
Example
>>> with tracing(): >>> trace_counter(0, 2.5); >>> trace_counter(0, 3);