示例#1
0
 time_logger(char const* const description, int thread_num,
         bool enabled = false)
   : description_(description), thread_num_(thread_num),
     enabled_(enabled && LTIM_ENABLED(warning))
 {
     if (enabled_)
         times_.reserve(hpx_initial_times_size);
 }
示例#2
0
 double elapsed()
 {
     return enable_logging_ && LTIM_ENABLED(fatal) ? stats_.elapsed() : 0;
 }
示例#3
0
 // special interface for block_profiler_wrapper below
 void measure(double started)
 {
     if (enable_logging_ && LTIM_ENABLED(fatal))
         stats_.add(started);
 }
示例#4
0
文件: value_logger.hpp 项目: 41i/hpx
 value_logger(char const* const description, bool enabled = true)
   : description_(description), enabled_(enabled && LTIM_ENABLED(fatal))
 {
     if (enabled_)
         values_.reserve(hpx_initial_times_size);
 }