|
OpenSDN source code
|
#include <trace.h>

Public Types | |
| using | TraceBufMap = typename TraceBuffer< TraceEntryT >::TraceBufMap |
| A link to the trace buffers table type. More... | |
Public Member Functions | |
| void | TraceOn () |
| Enables tracing for the table. More... | |
| void | TraceOff () |
| Disables tracing for the table. More... | |
| bool | IsTraceOn () |
| Determines whether tracing is enabled for the table. More... | |
| 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) |
| Requests the list of trace buffers names from the table. More... | |
| size_t | TraceBufCapacityGet (const std::string &buf_name) |
| Returns the capacity of the trace buffer with the given name. More... | |
| boost::shared_ptr< TraceBuffer< TraceEntryT > > | TraceBufCapacityReset (const std::string &buf_name, size_t size) |
Static Public Member Functions | |
| static Trace * | GetInstance () |
| Returns a pointer to the trace buffers table instance. More... | |
Private Member Functions | |
| Trace () | |
| Forbids the default ctor. More... | |
| ~Trace () | |
| Destroys the table. More... | |
| DISALLOW_COPY_AND_ASSIGN (Trace) | |
Private Attributes | |
| tbb::atomic< bool > | trace_enable_ |
| Determines if the tracing is enabled for the table. More... | |
| TraceBufMap | trace_buf_map_ |
| Stores the table of trace buffers. More... | |
| tbb::mutex | mutex_ |
| A mutex to protect the table from data races. More... | |
Static Private Attributes | |
| static Trace * | trace_ = NULL |
| A pointer to the table (singleton) used in this program. More... | |
The table for managing trace buffers using a map between their names and instances. The table is a singletone, the memory for its records is managed by the user (only weak pointers are stored in the table).
| using Trace< TraceEntryT >::TraceBufMap = typename TraceBuffer<TraceEntryT>::TraceBufMap |
|
private |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
staticprivate |
|
private |
|
private |