Static Public Member Functions |
static void CNC_API | set_num_threads (int n) |
| sets the number of threads used by the application
|
template<typename Tag , typename Tuner > |
static void | trace (tag_collection< Tag, Tuner > &tc, int level=1) |
| enable tracing of a given tag collection at a given level
|
template<typename Tag , typename Item , typename HC > |
static void | trace (item_collection< Tag, Item, HC > &ic, int level=1) |
| enable tracing of a given item collection at a given level
|
template<typename UserStep , typename Tuner > |
static void | trace (step_collection< UserStep, Tuner > &sc, int level=1) |
| enable tracing of a given step-collection at a given level (off=0)
|
static void CNC_API | trace (::CnC::graph &g, int level=1) |
| enable tracing of graph internals (not including its I/O collections)
|
template<class Derived > |
static void | trace_all (::CnC::context< Derived > &c, int level=1) |
| enable tracing of everything in given context (off=0)
|
static void | init_timer (bool cycle=false) |
| initalize timer
|
static void | finalize_timer (const char *name) |
| save collected time log to a specified file
|
template<typename UserStep , typename Tuner > |
static void | time (step_collection< UserStep, Tuner > &sc) |
| enable timing of a given step
|
template<class Derived > |
static void | collect_scheduler_statistics (::CnC::context< Derived > &c) |
| enable collection scheduler statistics per context
|
Debugging interface providing tracing and timing capabilities.
#include <cnc/debug.h>
For a meaningful tracing the runtime requires a function cnc_format for every non-standard item and tag type. The expected signature is:
std::ostream & cnc_format( std::ostream & os, const your_type & p )
Make sure it is defined in the corresponding namespace.
Definition at line 56 of file debug.h.