performance monitor: change to new counters

Change performance counters to use abstract function to use multiple
time sources via config.

Signed-off-by: Tobiasz Dryjanski <tobiaszx.dryjanski@intel.com>
This commit is contained in:
Tobiasz Dryjanski 2024-08-12 16:20:36 +02:00 committed by Kai Vehmanen
parent 6cc76a569d
commit 7586f19cb1
1 changed files with 2 additions and 2 deletions

View File

@ -495,13 +495,13 @@ int comp_copy(struct comp_dev *dev)
#endif
#ifdef CONFIG_SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS
const uint32_t begin_stamp = (uint32_t)sof_cycle_get_64();
const uint32_t begin_stamp = (uint32_t)telemetry_timestamp();
#endif
ret = dev->drv->ops.copy(dev);
#ifdef CONFIG_SOF_TELEMETRY_PERFORMANCE_MEASUREMENTS
const uint32_t cycles_consumed = (uint32_t)sof_cycle_get_64() - begin_stamp;
const uint32_t cycles_consumed = (uint32_t)telemetry_timestamp() - begin_stamp;
comp_update_performance_data(dev, cycles_consumed);
#endif