Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
FunctionTracer.cpp
Go to the documentation of this file.
1 
8 
9 namespace UA_CoMP {
10 namespace Misc {
11 
12 using namespace std;
13 
14 FunctionTracer::FunctionTracer(const string& function_name) : m_function_name(function_name)
15 {
16  g_tracer_log.log("---> function body: " + m_function_name);
18 }
19 
21 {
23  g_tracer_log.log("<--- function body: " + m_function_name);
24 }
25 
26 } // namespace Misc
27 } // namespace UA_CoMP
std::string const m_function_name
TracerOutput g_tracer_log
TracerOutput instance connected to g3log default logger.
FunctionTracer(const std::string &function_name)
Constructor inserts message in TrackerOutput about entering a function body.
void decrease_indent()
Decrease the indentation level.
void log(const std::string &msg)
Insert the message in the google log at given severity level.
Header for class FunctionTracer.
void increase_indent()
Increase the indentation level.
~FunctionTracer()
Destructor inserts message in TracketOutput about leaving funvtion body.