common::FlatProfilerSampler< KeyT, KeyTraits > Class Template Reference
[Profile module]

Support RIAA class to collect time sample for FlatProfiler. More...

#include <Profiler.hpp>

List of all members.

Public Member Functions

 FlatProfilerSampler (FlatProfiler< KeyT, KeyTraits > &profiler, const KeyT &key)
 ~FlatProfilerSampler ()

Detailed Description

template<typename KeyT, typename KeyTraits = std::less<KeyT>>
class common::FlatProfilerSampler< KeyT, KeyTraits >

Support RIAA class to collect time sample for FlatProfiler.

Remembers start time in constructor and registers duration of the object existence to given FlatProfiler in destructor.


Constructor & Destructor Documentation

template<typename KeyT , typename KeyTraits = std::less<KeyT>>
common::FlatProfilerSampler< KeyT, KeyTraits >::FlatProfilerSampler ( FlatProfiler< KeyT, KeyTraits > &  profiler,
const KeyT &  key 
) [inline]
template<typename KeyT , typename KeyTraits = std::less<KeyT>>
common::FlatProfilerSampler< KeyT, KeyTraits >::~FlatProfilerSampler (  )  [inline]

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

Generated on Wed Dec 16 20:44:55 2009 for CommonLib by  doxygen 1.6.1