PortAudio
2.0
|
Functions to assist in measuring the CPU utilization of a callback stream. Used to implement the Pa_GetStreamCpuLoad() function. More...
Macros | |
#define | LOWPASS_COEFFICIENT_0 (0.9) |
#define | LOWPASS_COEFFICIENT_1 (0.99999 - LOWPASS_COEFFICIENT_0) |
Functions | |
void | PaUtil_InitializeCpuLoadMeasurer (PaUtilCpuLoadMeasurer *measurer, double sampleRate) |
void | PaUtil_ResetCpuLoadMeasurer (PaUtilCpuLoadMeasurer *measurer) |
void | PaUtil_BeginCpuLoadMeasurement (PaUtilCpuLoadMeasurer *measurer) |
void | PaUtil_EndCpuLoadMeasurement (PaUtilCpuLoadMeasurer *measurer, unsigned long framesProcessed) |
double | PaUtil_GetCpuLoad (PaUtilCpuLoadMeasurer *measurer) |
Functions to assist in measuring the CPU utilization of a callback stream. Used to implement the Pa_GetStreamCpuLoad() function.
#define LOWPASS_COEFFICIENT_0 (0.9) |
Referenced by PaUtil_EndCpuLoadMeasurement().
#define LOWPASS_COEFFICIENT_1 (0.99999 - LOWPASS_COEFFICIENT_0) |
Referenced by PaUtil_EndCpuLoadMeasurement().
void PaUtil_BeginCpuLoadMeasurement | ( | PaUtilCpuLoadMeasurer * | measurer | ) |
References PaUtilCpuLoadMeasurer::measurementStartTime, and PaUtil_GetTime().
Referenced by PaPulseAudio_WriteStreamBlock(), and ProcessingThreadProc().
void PaUtil_EndCpuLoadMeasurement | ( | PaUtilCpuLoadMeasurer * | measurer, |
unsigned long | framesProcessed | ||
) |
FIXME
References PaUtilCpuLoadMeasurer::averageLoad, LOWPASS_COEFFICIENT_0, LOWPASS_COEFFICIENT_1, PaUtilCpuLoadMeasurer::measurementStartTime, PaUtil_GetTime(), and PaUtilCpuLoadMeasurer::samplingPeriod.
Referenced by PaPulseAudio_WriteStreamBlock(), and ProcessingThreadProc().
double PaUtil_GetCpuLoad | ( | PaUtilCpuLoadMeasurer * | measurer | ) |
References PaUtilCpuLoadMeasurer::averageLoad.
Referenced by GetStreamCpuLoad(), and ProcessingThreadProc().
void PaUtil_InitializeCpuLoadMeasurer | ( | PaUtilCpuLoadMeasurer * | measurer, |
double | sampleRate | ||
) |
References PaUtilCpuLoadMeasurer::averageLoad, and PaUtilCpuLoadMeasurer::samplingPeriod.
Referenced by OpenStream().
void PaUtil_ResetCpuLoadMeasurer | ( | PaUtilCpuLoadMeasurer * | measurer | ) |
References PaUtilCpuLoadMeasurer::averageLoad.
Referenced by ProcessingThreadProc().