KymoCore/Documentation
v8.0.0 Stable⌄
Versions8.0.0 Current
GitHub ↗
KYMOCORE / FEATURE

Trace

Record function calls, markers and optional ISR or task events.

kymo_core_trace.hKYMO_ENABLE_TRACE=1

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

Direct header dependencies

Direct header dependencieskymo_core_trace.hkymo_types.h
Generated automatically from this release’s includes.
Back to the shared architecture→