From 32129b9bf468f70636c9f75f3f01d32fac60f716 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 d213827f4..98fbb0550 100644 --- a/src/include/sof/audio/component.h +++ b/src/include/sof/audio/component.h @@ -249,7 +249,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))