Dump memory usage stats after partitioning.

This commit is contained in:
Daniel Patterson
2017-02-06 05:52:52 -08:00
committed by Patrick Niklaus
parent b789da45bd
commit b62b09e5f6
8 changed files with 37 additions and 14 deletions
+6 -2
View File
@@ -12,7 +12,8 @@ namespace osrm
{
namespace util
{
inline void DumpMemoryStats()
inline void DumpSTXXLStats()
{
#if STXXL_VERSION_MAJOR > 1 || (STXXL_VERSION_MAJOR == 1 && STXXL_VERSION_MINOR >= 4)
auto manager = stxxl::block_manager::get_instance();
@@ -22,7 +23,10 @@ inline void DumpMemoryStats()
#warning STXXL 1.4+ recommended - STXXL memory summary will not be available
util::Log() << "STXXL: memory summary not available, needs STXXL 1.4 or higher";
#endif
}
inline void DumpMemoryStats()
{
#ifndef _WIN32
rusage usage;
getrusage(RUSAGE_SELF, &usage);
@@ -40,4 +44,4 @@ inline void DumpMemoryStats()
}
}
#endif
#endif