debugging timing stats by showing how max values are computed

This commit is contained in:
Paul Davis 2021-06-29 09:46:46 -06:00
parent 9d88f370ae
commit a9f285b82b
2 changed files with 2 additions and 1 deletions

View file

@ -736,7 +736,7 @@ PortAudioBackend::process_callback(const float* input,
PaStreamCallbackFlags statusFlags)
{
PBD::WaitTimerRAII tr (dsp_stats[DeviceWait]);
PBD::TimerRAII tr2 (dsp_stats[RunLoop], true);
PBD::TimerRAII tr2 (dsp_stats[RunLoop]);
_active = true;

View file

@ -202,6 +202,7 @@ private:
if (diff > _max) {
_max = diff;
std::cerr << "max reset to " << _max << " from " << m_start_val << " .. " << m_last_val << " (diff = " << diff << ")\n";
}
if (diff < _min) {
_min = diff;