OpenSDN source code
|
#include <trace.h>
Public Types | |
typedef std::map< const std::string, boost::weak_ptr < TraceBuffer< TraceEntryT > > > | TraceBufMap |
Public Member Functions | |
void | TraceOn () |
void | TraceOff () |
bool | IsTraceOn () |
boost::shared_ptr< TraceBuffer < TraceEntryT > > | TraceBufGet (const std::string &buf_name) |
boost::shared_ptr< TraceBuffer < TraceEntryT > > | TraceBufAdd (const std::string &buf_name, size_t size, bool trace_enable) |
void | TraceBufListGet (std::vector< std::string > &trace_buf_list) |
size_t | TraceBufCapacityGet (const std::string &buf_name) |
boost::shared_ptr< TraceBuffer < TraceEntryT > > | TraceBufCapacityReset (const std::string &buf_name, size_t size) |
Static Public Member Functions | |
static Trace * | GetInstance () |
Private Member Functions | |
Trace () | |
~Trace () | |
DISALLOW_COPY_AND_ASSIGN (Trace) | |
Private Attributes | |
tbb::atomic< bool > | trace_enable_ |
TraceBufMap | trace_buf_map_ |
tbb::mutex | mutex_ |
Static Private Attributes | |
static Trace * | trace_ = NULL |
typedef std::map<const std::string, boost::weak_ptr<TraceBuffer<TraceEntryT> > > Trace< TraceEntryT >::TraceBufMap |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
staticprivate |
|
private |
|
private |