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()
|
inline |
Record scope entry.
- Parameters
-
[in] contextId Recording context identifier. [in] symbolId Nonzero generated symbol identifier.
- Usage Declare one local object per traced function/scope.
Definition at line 267 of file kymo_core_trace.h.
◆ ~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: