#include <dsp_load_calculator.h>
Definition at line 31 of file dsp_load_calculator.h.
◆ DSPLoadCalculator()
ARDOUR::DSPLoadCalculator::DSPLoadCalculator |
( |
| ) |
|
|
inline |
◆ elapsed_time_us()
int64_t ARDOUR::DSPLoadCalculator::elapsed_time_us |
( |
| ) |
|
|
inline |
◆ get_dsp_load()
float ARDOUR::DSPLoadCalculator::get_dsp_load |
( |
| ) |
const |
|
inline |
- Returns
- a decimal value between 0.0 and 1.0 representing the percentage of time spent between start and stop in proportion to the max expected time in microseconds(us).
Definition at line 102 of file dsp_load_calculator.h.
◆ get_dsp_load_unbound()
float ARDOUR::DSPLoadCalculator::get_dsp_load_unbound |
( |
| ) |
const |
|
inline |
- Returns
- an unbound value representing the percentage of time spent between start and stop in proportion to the max expected time in microseconds(us). This is useful for cases to estimate overload (e.g. Dummy backend)
Definition at line 113 of file dsp_load_calculator.h.
◆ get_max_time_us()
int64_t ARDOUR::DSPLoadCalculator::get_max_time_us |
( |
| ) |
const |
|
inline |
◆ max_timer_error_us()
int64_t ARDOUR::DSPLoadCalculator::max_timer_error_us |
( |
| ) |
|
|
inline |
The maximum error in timestamp values that will be tolerated before the current dsp load sample will be ignored
Definition at line 123 of file dsp_load_calculator.h.
◆ reset()
void ARDOUR::DSPLoadCalculator::reset |
( |
| ) |
|
|
inline |
◆ set_max_time()
void ARDOUR::DSPLoadCalculator::set_max_time |
( |
double |
samplerate, |
|
|
uint32_t |
period_size |
|
) |
| |
|
inline |
◆ set_max_time_us()
void ARDOUR::DSPLoadCalculator::set_max_time_us |
( |
uint64_t |
max_time_us | ) |
|
|
inline |
◆ set_start_timestamp_us()
void ARDOUR::DSPLoadCalculator::set_start_timestamp_us |
( |
int64_t |
start_timestamp_us | ) |
|
|
inline |
◆ set_stop_timestamp_us()
void ARDOUR::DSPLoadCalculator::set_stop_timestamp_us |
( |
int64_t |
stop_timestamp_us | ) |
|
|
inline |
◆ m_alpha
float ARDOUR::DSPLoadCalculator::m_alpha |
|
private |
◆ m_calc_avg_load
bool ARDOUR::DSPLoadCalculator::m_calc_avg_load |
|
private |
◆ m_dsp_load
float ARDOUR::DSPLoadCalculator::m_dsp_load |
|
private |
◆ m_max_time_us
int64_t ARDOUR::DSPLoadCalculator::m_max_time_us |
|
private |
◆ m_start_timestamp_us
int64_t ARDOUR::DSPLoadCalculator::m_start_timestamp_us |
|
private |
◆ m_stop_timestamp_us
int64_t ARDOUR::DSPLoadCalculator::m_stop_timestamp_us |
|
private |
The documentation for this class was generated from the following file: