diff --git a/bin/deployer-funcs.cpp b/bin/deployer-funcs.cpp index bc288834..081f56a5 100644 --- a/bin/deployer-funcs.cpp +++ b/bin/deployer-funcs.cpp @@ -34,10 +34,12 @@ #ifdef ORO_BUILD_RTALLOC // need access to all TLSF functions embedded in RTT #define ORO_MEMORY_POOL -#define _DEBUG_TLSF_ 1 +//#define _DEBUG_TLSF_ 1 #include -#include // with I/O -#include +#ifdef _DEBUG_TLSF_ + #include // with I/O + #include +#endif #endif #if defined(ORO_SUPPORT_CPU_AFFINITY) @@ -53,7 +55,7 @@ #endif namespace po = boost::program_options; -#ifdef ORO_BUILD_RTALLOC +#ifdef _DEBUG_TLSF_ namespace bpt = boost::posix_time; #endif @@ -426,6 +428,7 @@ void TLSFMemoryPool::shutdown() void deployerDumpTLSF() { +#ifdef _DEBUG_TLSF_ std::ofstream file; // format now as "YYYYMMDDTHHMMSS.ffffff" @@ -444,6 +447,7 @@ void deployerDumpTLSF() (void)fclose(ff); ff=0; } +#endif } #endif // ORO_BUILD_RTALLOC