REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
Loading...
Searching...
No Matches
mode::PerformanceCounter Class Reference

This class provides a simple way of doing some metrics about the device usage since startup. More...

#include <counters.h>

Inheritance diagram for mode::PerformanceCounter:
Collaboration diagram for mode::PerformanceCounter:

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 Public Member Functions inherited from utils::HeapSingleton< PerformanceCounter >
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()

mode::PerformanceCounter::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()

◆ 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: