Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches

◆ nrf_edgeai_obsv_core_for_each_metric()

int nrf_edgeai_obsv_core_for_each_metric ( nrf_edgeai_obsv_core_t * p_ctx,
nrf_edgeai_obsv_metric_cb_t cb,
void * user )

#include <include/nrf_edgeai_obsv/nrf_edgeai_obsv_core.h>

Iterate over all registered metrics.

Calls p_metric->finalize() then p_metric->snapshot() for each metric, and invokes cb with the resulting snapshot. Iteration stops early if cb returns false.

Parameters
p_ctxInitialized core.
cbCallback invoked once per metric snapshot. Return false to stop early.
userOpaque pointer forwarded to cb.
Returns
0 on success, -EINVAL if p_ctx or cb is NULL.