108 struct rusage rusage;
109 getrusage( RUSAGE_SELF, &rusage );
112 double memory =
double(rusage.ru_maxrss)/1024.0 - eMemoryAtMarker;
114 if (fabs(eMemoryAtMarker) < 1e-6)
116 std::cout << FormDebugHead() <<
"Total memory footprint: " << memory <<
" Mb" << std::endl << std::flush;
120 std::cout << FormDebugHead() <<
"Memory change from marker: " << memory <<
" Mb" << std::endl << std::flush;