TraceCounterHolder Class Reference

Holds on to a counter key, as well as the global collector for fast lookup. More...

Public Member Functions

 TraceCounterHolder (const TraceKey &key)
 Constructor used by TRACE_COUNTER_* macro. More...
 
bool IsEnabled () const
 Returns whether the TraceCollector is enabled or not. More...
 
void Record (double value, bool delta)
 Records a counter delta value if the TraceCollector is enabled. More...
 

Detailed Description

Holds on to a counter key, as well as the global collector for fast lookup.

Definition at line 323 of file trace.h.

Constructor & Destructor Documentation

◆ TraceCounterHolder()

TraceCounterHolder ( const TraceKey key)
inlineexplicit

Constructor used by TRACE_COUNTER_* macro.

Definition at line 327 of file trace.h.

Member Function Documentation

◆ IsEnabled()

bool IsEnabled ( ) const
inline

Returns whether the TraceCollector is enabled or not.

Definition at line 332 of file trace.h.

◆ Record()

void Record ( double  value,
bool  delta 
)
inline

Records a counter delta value if the TraceCollector is enabled.

Definition at line 338 of file trace.h.


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