From 8afc994177121140602f064dea4643d20072c5c4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 12 Jun 2021 09:20:28 -0600 Subject: [PATCH] add some DSP stats to the JACK backend --- libs/backends/jack/jack_audiobackend.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/backends/jack/jack_audiobackend.cc b/libs/backends/jack/jack_audiobackend.cc index 89a67e4e0e..3d6bc2b150 100644 --- a/libs/backends/jack/jack_audiobackend.cc +++ b/libs/backends/jack/jack_audiobackend.cc @@ -979,11 +979,15 @@ JACKAudioBackend::process_thread () while (1) { GET_PRIVATE_JACK_POINTER_RET(_priv_jack,0); + dsp_stats[AudioBackend::DeviceWait].start (); pframes_t nframes = jack_cycle_wait (_priv_jack); + dsp_stats[AudioBackend::DeviceWait].update (); + dsp_stats[AudioBackend::ProcessCallback].start(); if (engine.process_callback (nframes)) { return 0; } + dsp_stats[AudioBackend::ProcessCallback].update(); jack_cycle_signal (_priv_jack, 0); }