LAMA
tracing Namespace Reference

This class is a helper class for tracing a scope in C++. More...

Data Structures

class  RegionTable
 Class to collect timing information about different regions in an instrumented program. More...
class  TraceConfig
 This class is used to define/set the runtime configuration for tracing. More...
class  TraceRegionRecord

Functions

static double walltime ()
 LAMA_LOG_DEF_LOGGER (RegionTable::logger,"RegionTable")
 LAMA_LOG_DEF_LOGGER (TraceConfig::logger,"TraceConfig")
static std::vector< std::string > split (const std::string &params, const char seperator)
 LAMA_LOG_DEF_LOGGER (TraceRegionRecord::logger,"TraceRegionRecord")
static double getWallTime ()

Variables

static boost::mutex printMutex
static boost::mutex mapMutex

Detailed Description

This class is a helper class for tracing a scope in C++.

The constructor of an object creates a start entry and the destructor the stop entry for trace files. The use of this class is much safer than using calls of routines start and stop explicitly as it works also very well in case of exception.


Function Documentation

tracing::LAMA_LOG_DEF_LOGGER ( TraceRegionRecord::logger  ,
"TraceRegionRecord"   
)
tracing::LAMA_LOG_DEF_LOGGER ( TraceConfig::logger  ,
"TraceConfig"   
)
tracing::LAMA_LOG_DEF_LOGGER ( RegionTable::logger  ,
"RegionTable"   
)
static std::vector<std::string> tracing::split ( const std::string &  params,
const char  seperator 
) [static]
static double tracing::walltime ( ) [static]

Variable Documentation

boost::mutex tracing::mapMutex [static]
boost::mutex tracing::printMutex [static]