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

KymoCoreTraceScope Class Reference

API contracts in their original English. Navigation and guides are bilingual.

Automatic C++ entry/exit instrumentation for one lexical scope. More...

#include <kymo_core_trace.h>

Public Member Functions

 KymoCoreTraceScope (uint32_t contextId, uint16_t symbolId)
 Record scope entry.
 ~KymoCoreTraceScope ()
 Record the matching scope exit.
 KymoCoreTraceScope (const KymoCoreTraceScope &)=delete
KymoCoreTraceScope & operator= (const KymoCoreTraceScope &)=delete

Detailed Description

Automatic C++ entry/exit instrumentation for one lexical scope.

No allocation; destruction pairs the entry on every return path.

Usage Construct a local scope after successful Trace Init.

Definition at line 257 of file kymo_core_trace.h.

Constructor & Destructor Documentation

◆ KymoCoreTraceScope()

KymoCoreTraceScope::KymoCoreTraceScope ( uint32_t contextId,
uint16_t symbolId )
inline

Record scope entry.

Parameters
[in]contextIdRecording context identifier.
[in]symbolIdNonzero generated symbol identifier.
Usage Declare one local object per traced function/scope.

Definition at line 267 of file kymo_core_trace.h.

◆ ~KymoCoreTraceScope()

KymoCoreTraceScope::~KymoCoreTraceScope ( )
inline

Record the matching scope exit.

Usage Invoked automatically when the object leaves scope.

Definition at line 277 of file kymo_core_trace.h.


The documentation for this class was generated from the following file: