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. | |
Helper class to manage an event scope.
|
inlinenoexcept |
Constructor.
| name | The event name. |
|
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.