$extrastylesheet
Olena  User documentation 2.1
An Image Processing Platform
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mln::debug::trace Class Reference

#include <mln/debug/trace.hh>

Public Member Functions

 trace (const std::string &scope)
 ~trace ()

Static Public Member Functions

static void resume ()
static void stop ()
static void warning (const std::string &message)

Static Public Attributes

static bool quiet
static unsigned tab
static bool full_trace

Detailed Description

Trace function calls.

This class is meant to be instantiated at the beginning of each routine in olena. It keep trace of the function call backtrace and remember the time in each function.

This class is intended to be used through the mln_trace macro as follows:

namespace mln
{
void my_function()
{
mln_trace("mln::my_function");
}
}
Warning
mln_trace() declares a local variable (named mln_trace_), so do not use mln_trace twice in the same scope to avoid duplicate declarations.

Definition at line 80 of file trace.hh.

Constructor & Destructor Documentation

mln::debug::trace::trace ( const std::string &  scope)
mln::debug::trace::~trace ( )

Member Function Documentation

static void mln::debug::trace::resume ( )
static
static void mln::debug::trace::stop ( )
static
static void mln::debug::trace::warning ( const std::string &  message)
static

Member Data Documentation

bool mln::debug::trace::full_trace
static

Definition at line 95 of file trace.hh.

bool mln::debug::trace::quiet
static

Public attributes.

Definition at line 93 of file trace.hh.

unsigned mln::debug::trace::tab
static

Definition at line 94 of file trace.hh.