PDI 1.13.0

the PDI data interface

PDI::Timer_event_handler Class Reference

A scoped timer for a plugin operation. More...

#include <context.h>

Public Member Functions

 Timer_event_handler (Context &ctx, const std::string &plugin_name)
 Triggers the start event of the timer.
 ~Timer_event_handler ()
 Triggers the stop event of the timer.

Detailed Description

A scoped timer for a plugin operation.

Triggers the <plugin_name>_start_timer event on construction and the matching <plugin_name>_stop_timer event on destruction, so that the timer plugin can measure the duration of the enclosing scope.

Constructor & Destructor Documentation

◆ Timer_event_handler()

PDI::Timer_event_handler::Timer_event_handler ( Context & ctx,
const std::string & plugin_name )

Triggers the start event of the timer.

Parameters
[in]ctxthe context in which to trigger the events
[in]plugin_namethe name of the plugin the events are named after

◆ ~Timer_event_handler()

PDI::Timer_event_handler::~Timer_event_handler ( )

Triggers the stop event of the timer.


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