Fix VAD timing log to show per-call and cumulative time
The log previously showed cumulative time labeled as just "vad time", which was misleading when called multiple times. Now shows both the per-call time and the cumulative total. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3b54460d2c
commit
9305251037
|
|
@ -5189,8 +5189,9 @@ bool whisper_vad_detect_speech(
|
|||
//WHISPER_LOG_DEBUG("chunk %d: p = %7.3f\n", i, probs[i]);
|
||||
}
|
||||
|
||||
vctx->t_vad_us += ggml_time_us() - t_start_vad_us;
|
||||
WHISPER_LOG_INFO("%s: vad time = %.2f ms processing %d samples\n", __func__, 1e-3f * vctx->t_vad_us, n_samples);
|
||||
const int64_t t_vad_this_us = ggml_time_us() - t_start_vad_us;
|
||||
vctx->t_vad_us += t_vad_this_us;
|
||||
WHISPER_LOG_INFO("%s: vad time = %.2f ms (cumulative %.2f ms) processing %d samples\n", __func__, 1e-3f * t_vad_this_us, 1e-3f * vctx->t_vad_us, n_samples);
|
||||
|
||||
ggml_backend_sched_reset(sched);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue