From e63b3a47b27d99cfae3ff220806a76b4a071db11 Mon Sep 17 00:00:00 2001 From: Baofeng Tian Date: Wed, 12 Oct 2022 10:57:08 +0800 Subject: [PATCH] component: add frames and period info to component performance profiling Frames and period are key information for time calculation, with these and sample rate, it would be easy to get current component consumed data in time domain. CI script also easy to get these information for further calculation. Signed-off-by: Baofeng Tian --- src/include/sof/audio/component.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/sof/audio/component.h b/src/include/sof/audio/component.h index 029557ce14e6..c860902ac9af 100644 --- a/src/include/sof/audio/component.h +++ b/src/include/sof/audio/component.h @@ -238,7 +238,9 @@ enum { (uint32_t)((pcd)->cpu_delta_peak)) #define comp_perf_avg_info(pcd, comp_p) \ - comp_info(comp_p, "perf comp_copy cpu avg %u (current peak %u)",\ + comp_info(comp_p, "perf comp_copy samples %u period %u cpu avg %u peak %u",\ + (uint32_t)((comp_p)->frames), \ + (uint32_t)((comp_p)->period), \ (uint32_t)((pcd)->cpu_delta_sum), \ (uint32_t)((pcd)->cpu_delta_peak))