Kanzi 4.0.0-beta2
kanzi::EventScope< TCategory, TString, Enabled > Class Template Reference

Helper class to manage an event scope. More...

#include <kanzi/core/tracing/tracing.hpp>

Public Member Functions

 EventScope (TString name) noexcept
 Constructor.
 
 ~EventScope () noexcept
 Destructor.
 

Detailed Description

template<typename TCategory, typename TString, bool Enabled = TCategory::CompileTimeEnabled>
class kanzi::EventScope< TCategory, TString, Enabled >

Helper class to manage an event scope.

Constructor & Destructor Documentation

◆ EventScope()

template<typename TCategory , typename TString , bool Enabled = TCategory::CompileTimeEnabled>
kanzi::EventScope< TCategory, TString, Enabled >::EventScope ( TString name)
inlinenoexcept

Constructor.

Parameters
nameThe event name.

◆ ~EventScope()

template<typename TCategory , typename TString , bool Enabled = TCategory::CompileTimeEnabled>
kanzi::EventScope< TCategory, TString, Enabled >::~EventScope ( )
inlinenoexcept

Destructor.

If the category is enabled, the duration event is added to the tracing subsystem with a starting timestamp of the constructor, and an ending timestamp from the destructor.


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