Skip to content
Snippets Groups Projects
Commit 9e5b4949 authored by Robert K's avatar Robert K
Browse files

include headers containing rusage structs

parent 37fac417
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
#include <dune/common/timer.hh> #include <dune/common/timer.hh>
#include <dune/alugrid/impl/serial/myalloc.h> #include <dune/alugrid/impl/serial/myalloc.h>
#include <sys/time.h>
#include <sys/resource.h>
//#define PRINT_IDENTIFICATION_TIMES //#define PRINT_IDENTIFICATION_TIMES
...@@ -369,12 +371,10 @@ std::vector<double> getMemoryUsage() ...@@ -369,12 +371,10 @@ std::vector<double> getMemoryUsage()
// dune-alugrid version // dune-alugrid version
memUsage.push_back(double(ALUGrid::MyAlloc::allocatedMemory())/1024.0/1024.0); memUsage.push_back(double(ALUGrid::MyAlloc::allocatedMemory())/1024.0/1024.0);
#endif #endif
/*
struct rusage info; struct rusage info;
getrusage( RUSAGE_SELF, &info ); getrusage( RUSAGE_SELF, &info );
// convert to KB // convert to KB
memUsage.push_back(double(info.ru_maxrss)/ 1024.0); memUsage.push_back(double(info.ru_maxrss)/ 1024.0);
*/
return memUsage; return memUsage;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment