REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
This class provides a simple way of doing some metrics about the device usage since startup. More...
#include <counters.h>


Public Member Functions | |
PerformanceCounter () | |
void | reset () |
void | to (mode::Mode new_mode) |
Manual Mode tracking. | |
void | add (mode::Mode some_mode, uint32_t usec) |
void | increase_run () |
void | to_json (JsonObject target) |
Additional Inherited Members | |
![]() | |
static PerformanceCounter & | get () |
Detailed Description
This class provides a simple way of doing some metrics about the device usage since startup.
Depending on the usage patterns of the lucidac, these numbers can be meaningful (in particular with the very exact FlexIORunManager) or not. In particular, the HALT total timer is most likely not very helpful.
Definition at line 21 of file counters.h.
Constructor & Destructor Documentation
◆ PerformanceCounter()
|
inline |
Definition at line 32 of file counters.h.
References reset().
Member Function Documentation
◆ add()
FLASHMEM void mode::PerformanceCounter::add | ( | mode::Mode | some_mode, |
uint32_t | usec ) |
Definition at line 23 of file counters.cpp.
References mode::HALT, mode::IC, and mode::OP.
◆ increase_run()
FLASHMEM void mode::PerformanceCounter::increase_run | ( | ) |
Definition at line 31 of file counters.cpp.
◆ reset()
FLASHMEM void mode::PerformanceCounter::reset | ( | ) |
Definition at line 3 of file counters.cpp.
Referenced by PerformanceCounter().
◆ to()
FLASHMEM void mode::PerformanceCounter::to | ( | mode::Mode | new_mode | ) |
Manual Mode tracking.
Definition at line 11 of file counters.cpp.
References FROMTO, mode::HALT, mode::IC, and mode::OP.
Referenced by mode::FlexIOControl::to_end(), mode::FlexIOControl::to_exthalt(), mode::ManualControl::to_halt(), mode::FlexIOControl::to_ic(), mode::ManualControl::to_ic(), mode::FlexIOControl::to_idle(), mode::FlexIOControl::to_op(), and mode::ManualControl::to_op().
◆ to_json()
FLASHMEM void mode::PerformanceCounter::to_json | ( | JsonObject | target | ) |
Definition at line 35 of file counters.cpp.
The documentation for this class was generated from the following files:
- lib/computation/src/mode/counters.h
- lib/computation/src/mode/counters.cpp