Trace
Record function calls, markers and optional ISR or task events.
Open the API
Integration
main.c · Excerpt
#include <kymo_core.h>
#include <kymo_core_trace.h>
/* Define persistent configurations before startup. */
KymoStatus status = KymoCore_init(&coreConfig);
if (status == KYMO_OK)
{
status = KymoCoreTrace_init(&featureConfig);
}
/* After successful Init: call KymoCore_main() on each loop turn. */Configurations, referenced tables, buffers and callback contexts must remain valid according to their API contracts. Check every Init result. This feature has no additional cyclic Main call.
Instrumentation sites
KymoCoreTrace_enter · KymoCoreTrace_exit
instrumentation.c
KymoCoreTrace_enter(contextId, symbolId);
/* measured work */
KymoCoreTrace_exit(contextId, symbolId);