Definition at line 16 of file MemReport.h. References ILOG_DEBUG, ILOG_VAR, and ILOG_WARNING. Referenced by PrintMemUsage(). 00017 { 00018 ILOG_VAR(PrintMemUsage); 00019 #ifdef unix 00020 int who = RUSAGE_CHILDREN; //RUSAGE_SELF; 00021 struct rusage usage; 00022 int ret; 00023 00024 ret = getrusage(who, &usage); 00025 void* b = sbrk(0); 00026 UInt64 b2 = (UInt64)b; 00027 ILOG_DEBUG("RUsage " << b2 << " " << usage.ru_idrss << " " << usage.ru_isrss << " " << usage.ru_ixrss << " " << usage.ru_maxrss << " " <<marker); 00028 #else 00029 ILOG_WARNING("PrintMemUsage only implemented for unix"); 00030 #endif 00031 }
|