Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
scheduler_report.hpp File Reference

A Scheduler slot's timing as a tagged line. More...

Detailed Description

A Scheduler slot's timing as a tagged line.

One #SYS.SCHED tagged-output line with the slot's counts since the scheduler started: runs that began late, periods skipped, and the worst delay in microseconds.

sbl::control::write_scheduler_report<SBL_LOG_OUTPUT>(sched, SLOT_1KHZ, Clock::TICKS_PER_SECOND);
// #SYS.SCHED late=0 skipped=0 delay_us=12

Definition in file scheduler_report.hpp.

#include <cstdint>
#include <sbl/common/log/tagged.hpp>

Go to the source code of this file.

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::control
 The control stack: scheduler, event queue, merge, CC mapping, calibration.
 

Functions

constexpr uint32_t sbl::control::ticks_to_us (uint64_t ticks, uint32_t ticks_per_second)
 
template<typename Output , typename Sched >
void sbl::control::write_scheduler_report (const Sched &scheduler, uint8_t slot, uint32_t ticks_per_second)