Skip to content

Commit

Permalink
bin: Disable deployerDumpTLSF() function which is only available if R…
Browse files Browse the repository at this point in the history
…TT was built with OS_RT_MALLOC_DEBUG

Signed-off-by: Johannes Meyer <[email protected]>
  • Loading branch information
meyerj committed Apr 28, 2017
1 parent f2ccf6f commit a145784
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bin/deployer-funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <rtt/os/tlsf/tlsf.h>
#include <boost/date_time/posix_time/posix_time.hpp> // with I/O
#include <fstream>
#ifdef _DEBUG_TLSF_
#include <boost/date_time/posix_time/posix_time.hpp> // with I/O
#include <fstream>
#endif
#endif

#if defined(ORO_SUPPORT_CPU_AFFINITY)
Expand All @@ -53,7 +55,7 @@
#endif

namespace po = boost::program_options;
#ifdef ORO_BUILD_RTALLOC
#ifdef _DEBUG_TLSF_
namespace bpt = boost::posix_time;
#endif

Expand Down Expand Up @@ -426,6 +428,7 @@ void TLSFMemoryPool::shutdown()

void deployerDumpTLSF()
{
#ifdef _DEBUG_TLSF_
std::ofstream file;

// format now as "YYYYMMDDTHHMMSS.ffffff"
Expand All @@ -444,6 +447,7 @@ void deployerDumpTLSF()
(void)fclose(ff);
ff=0;
}
#endif
}

#endif // ORO_BUILD_RTALLOC
Expand Down

0 comments on commit a145784

Please sign in to comment.