26 #ifndef MLN_TRACE_ENTERING_HH
27 # define MLN_TRACE_ENTERING_HH
38 # include <mln/trace/quiet.hh>
47 void entering(
const std::string& scope);
49 extern std::stack<std::clock_t> start_times;
50 extern std::stack<std::string> scopes;
54 # ifndef MLN_INCLUDE_ONLY
56 # ifndef MLN_WO_GLOBAL_VARS
58 std::stack<std::clock_t> start_times;
59 std::stack<std::string> scopes;
61 # endif // !MLN_WO_GLOBAL_VARS
64 void entering(
const std::string& scope)
69 start_times.push(std::clock());
72 if ((tab != 0) && (internal::max_tab == tab))
73 std::cout << std::endl;
75 for (
unsigned i = 0; i < tab; ++i)
77 std::cout << scope <<
" {";
79 internal::max_tab = ++tab;
82 # endif // ! MLN_INCLUDE_ONLY
89 #endif // ! MLN_TRACE_ENTERING_HH