HPCToolkit
Trace.hpp File Reference
#include <iostream>
Include dependency graph for Trace.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define IFTRACE   if (trace) std::cerr
 
#define IFDOTRACE   if (trace)
 
#define TRACE_METHOD(Class, method)   IFTRACE << (unsigned long) this << "->" << #Class << "::" << #method << " "
 
#define TRACE_STATIC_METHOD(Class, method)   IFTRACE << "STATIC" << "->" << #Class << "::" << #method << " "
 
#define SET_TRACE_IMPL(module)   void SetTrace ## module( int trc) { trace = trc; }
 

Variables

int trace
 

Macro Definition Documentation

◆ IFDOTRACE

#define IFDOTRACE   if (trace)

Definition at line 65 of file Trace.hpp.

◆ IFTRACE

#define IFTRACE   if (trace) std::cerr

Definition at line 64 of file Trace.hpp.

◆ SET_TRACE_IMPL

#define SET_TRACE_IMPL (   module)    void SetTrace ## module( int trc) { trace = trc; }

Definition at line 76 of file Trace.hpp.

◆ TRACE_METHOD

#define TRACE_METHOD (   Class,
  method 
)    IFTRACE << (unsigned long) this << "->" << #Class << "::" << #method << " "

Definition at line 72 of file Trace.hpp.

◆ TRACE_STATIC_METHOD

#define TRACE_STATIC_METHOD (   Class,
  method 
)    IFTRACE << "STATIC" << "->" << #Class << "::" << #method << " "

Definition at line 74 of file Trace.hpp.

Variable Documentation

◆ trace

int trace

Definition at line 57 of file Trace.cpp.