Browse Source

Merge pull request #11059 from richardkchapman/hpcc-19222

HPCC-19222 Default activity timing to off if !define(HAS_GOOD_CYCLE_COUNTER)

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 7 years ago
parent
commit
d63f5c8ae0
1 changed files with 4 additions and 2 deletions
  1. 4 2
      common/thorhelper/thorcommon.hpp

+ 4 - 2
common/thorhelper/thorcommon.hpp

@@ -215,7 +215,10 @@ interface THORHELPER_API IDiskMerger : extends IInterface
 extern THORHELPER_API IDiskMerger *createDiskMerger(IRowInterfaces *rowInterfaces, IRowLinkCounter *linker, const char *tempnamebase);
 
 
-#define TIME_ACTIVITIES
+#ifdef HAS_GOOD_CYCLE_COUNTER
+ #define TIME_ACTIVITIES
+#endif
+
 class THORHELPER_API ActivityTimeAccumulator
 {
     friend class ActivityTimer;
@@ -252,7 +255,6 @@ public:
 };
 
 #ifdef TIME_ACTIVITIES
-#include "jdebug.hpp"
 
 class ActivityTimer
 {