PortAudio
2.0
|
Functions to assist in measuring the CPU utilization of a callback stream. Used to implement the Pa_GetStreamCpuLoad() function. More...
Go to the source code of this file.
Data Structures | |
struct | PaUtilCpuLoadMeasurer |
Functions | |
void | PaUtil_InitializeCpuLoadMeasurer (PaUtilCpuLoadMeasurer *measurer, double sampleRate) |
void | PaUtil_BeginCpuLoadMeasurement (PaUtilCpuLoadMeasurer *measurer) |
void | PaUtil_EndCpuLoadMeasurement (PaUtilCpuLoadMeasurer *measurer, unsigned long framesProcessed) |
void | PaUtil_ResetCpuLoadMeasurer (PaUtilCpuLoadMeasurer *measurer) |
double | PaUtil_GetCpuLoad (PaUtilCpuLoadMeasurer *measurer) |
Functions to assist in measuring the CPU utilization of a callback stream. Used to implement the Pa_GetStreamCpuLoad() function.
void PaUtil_BeginCpuLoadMeasurement | ( | PaUtilCpuLoadMeasurer * | measurer | ) |
References PaUtilCpuLoadMeasurer::measurementStartTime, and PaUtil_GetTime().
Referenced by 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 ProcessingThreadProc().
double PaUtil_GetCpuLoad | ( | PaUtilCpuLoadMeasurer * | measurer | ) |
References PaUtilCpuLoadMeasurer::averageLoad.
Referenced by ProcessingThreadProc().
void PaUtil_InitializeCpuLoadMeasurer | ( | PaUtilCpuLoadMeasurer * | measurer, |
double | sampleRate | ||
) |
References PaUtilCpuLoadMeasurer::averageLoad, and PaUtilCpuLoadMeasurer::samplingPeriod.
void PaUtil_ResetCpuLoadMeasurer | ( | PaUtilCpuLoadMeasurer * | measurer | ) |
References PaUtilCpuLoadMeasurer::averageLoad.
Referenced by ProcessingThreadProc().