コード例 #1
0
ファイル: time_logger.hpp プロジェクト: K-ballo/hpx
 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
ファイル: block_profiler.hpp プロジェクト: 7ev3n/hpx
 double elapsed()
 {
     return enable_logging_ && LTIM_ENABLED(fatal) ? stats_.elapsed() : 0;
 }
コード例 #3
0
ファイル: block_profiler.hpp プロジェクト: 7ev3n/hpx
 // 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);
 }