HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TraceCounterHolder Class Reference

#include <trace.h>

Public Member Functions

 TraceCounterHolder (const TraceKey &key)
 
bool IsEnabled () const
 
void Record (double value, bool delta)
 

Detailed Description

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

Definition at line 322 of file trace.h.

Constructor & Destructor Documentation

TraceCounterHolder::TraceCounterHolder ( const TraceKey key)
inlineexplicit

Constructor used by TRACE_COUNTER_* macro.

Definition at line 326 of file trace.h.

Member Function Documentation

bool TraceCounterHolder::IsEnabled ( ) const
inline

Returns whether the TraceCollector is enabled or not.

Definition at line 331 of file trace.h.

void TraceCounterHolder::Record ( double  value,
bool  delta 
)
inline

Records a counter delta value if the TraceCollector is enabled.

Definition at line 337 of file trace.h.


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