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 <baofeng.tian@intel.com>
This commit is contained in:
Baofeng Tian 2022-10-12 10:57:08 +08:00 committed by Kai Vehmanen
parent a28dde6702
commit 32129b9bf4
1 changed files with 3 additions and 1 deletions

View File

@ -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))