35 #ifndef _BLAZE_UTIL_TRACING_FUNCTIONTRACE_H_ 36 #define _BLAZE_UTIL_TRACING_FUNCTIONTRACE_H_ 74 inline FunctionTrace(
const std::string& file,
const std::string&
function );
94 void*
operator new ( std::size_t ) =
delete;
95 void*
operator new[]( std::size_t ) =
delete;
96 void*
operator new ( std::size_t,
const std::nothrow_t& ) noexcept =
delete;
97 void*
operator new[]( std::size_t,
const std::nothrow_t& ) noexcept =
delete;
99 void operator delete (
void* ) noexcept =
delete;
100 void operator delete[](
void* ) noexcept =
delete;
101 void operator delete (
void*,
const std::nothrow_t& ) noexcept =
delete;
102 void operator delete[](
void*,
const std::nothrow_t& ) noexcept =
delete;
136 std::ostringstream oss;
139 #if BLAZE_OPENMP_PARALLEL_MODE 140 oss <<
"[Thread " << omp_get_thread_num() <<
"]";
142 oss <<
"[Thread " << std::this_thread::get_id() <<
"]";
145 oss <<
" Entering function '" <<
function_ <<
"' in file '" <<
file_ <<
"'\n";
146 std::cerr << oss.str();
164 std::ostringstream oss;
167 #if BLAZE_OPENMP_PARALLEL_MODE 168 oss <<
"[Thread " << omp_get_thread_num() <<
"]";
170 oss <<
"[Thread " << std::this_thread::get_id() <<
"]";
173 oss <<
" Leaving function '" <<
function_ <<
"' in file '" <<
file_ <<
"'\n";
174 std::cerr << oss.str();
Header file for a compiler independent type/function signature macro.
FunctionTrace(const std::string &file, const std::string &function)
Constructor for the FunctionTrace class.
Definition: FunctionTrace.h:132
RAII object for function tracing.The FunctionTrace class is an auxiliary helper class for the tracing...
Definition: FunctionTrace.h:68
Namespace of the Blaze C++ math library.
Definition: Blaze.h:57
System settings for the shared-memory parallelization.
std::string file_
The file name the traced function is contained in.
Definition: FunctionTrace.h:110
~FunctionTrace()
Destructor for the FunctionTrace class.
Definition: FunctionTrace.h:162
std::string function_
The name of the traced function.
Definition: FunctionTrace.h:111
System settings for the debugging policy of the Blaze library.