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
cycles.hpp File Reference

The cycle counter behind the profiling tools. More...

Detailed Description

The cycle counter behind the profiling tools.

Provides sbl::system::profiling::{init, cycles, cycle_rate, CycleScope} over the target's cycle port: the MCU directory's system/port/cycles.hpp, reached by include path (DWT CYCCNT on the STM32H7, CLOCK_MONOTONIC in nanoseconds on the host). The contract is cycles_requirements.hpp.

A cycle is one count of that counter; cycle_rate() is counts per second.

Definition in file cycles.hpp.

#include <cstdint>
#include <sbl/system/port/cycles.hpp>
#include <sbl/system/port/cycles_requirements.hpp>

Go to the source code of this file.

Classes

struct  sbl::system::profiling::CycleScope
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::system
 The system layer: execution levels, the control critical section, ring buffers, assertions and the fault handler, profiling, and the port contracts.
 
namespace  sbl::system::profiling
 Profiling: the cycle counter, the audio budget, section profiles and reports.
 

Functions

void sbl::system::profiling::init ()
 
void sbl::system::profiling::init_for_profiling ()
 
uint32_t sbl::system::profiling::cycles ()
 
constexpr uint32_t sbl::system::profiling::cycle_rate ()