Example #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);
 }
Example #2
0
 double elapsed()
 {
     return enable_logging_ && LTIM_ENABLED(fatal) ? stats_.elapsed() : 0;
 }
Example #3
0
 // special interface for block_profiler_wrapper below
 void measure(double started)
 {
     if (enable_logging_ && LTIM_ENABLED(fatal))
         stats_.add(started);
 }
Example #4
0
 value_logger(char const* const description, bool enabled = true)
   : description_(description), enabled_(enabled && LTIM_ENABLED(fatal))
 {
     if (enabled_)
         values_.reserve(hpx_initial_times_size);
 }