mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
measure backend process callback duration in ALSA backend
This commit is contained in:
parent
c5abb7ecda
commit
4c76ff503f
1 changed files with 2 additions and 0 deletions
|
|
@ -1961,11 +1961,13 @@ AlsaAudioBackend::main_process_thread ()
|
||||||
/* call engine process callback */
|
/* call engine process callback */
|
||||||
_last_process_start = g_get_monotonic_time ();
|
_last_process_start = g_get_monotonic_time ();
|
||||||
dsp_stats[PreProcess].update();
|
dsp_stats[PreProcess].update();
|
||||||
|
dsp_stats[ProcessCallback].start();
|
||||||
if (engine.process_callback (_samples_per_period)) {
|
if (engine.process_callback (_samples_per_period)) {
|
||||||
_pcmi->pcm_stop ();
|
_pcmi->pcm_stop ();
|
||||||
_active = false;
|
_active = false;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
dsp_stats[ProcessCallback].update();
|
||||||
dsp_stats[PostProcess].start ();
|
dsp_stats[PostProcess].start ();
|
||||||
|
|
||||||
/* only used when adding/removing MIDI device/system ports */
|
/* only used when adding/removing MIDI device/system ports */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue