Removed unused instrumentation of cohomology and unnecessary includes dev
authorDmitriy Morozov <dmitriy@mrzv.org>
Mon, 22 Feb 2010 17:24:02 -0800
branchdev
changeset 203 f31527c1f962
parent 202 a91083de7386
child 204 7653574ff064
Removed unused instrumentation of cohomology and unnecessary includes
examples/cohomology/rips-explicit-cohomology.cpp
examples/cohomology/rips-pairwise-cohomology.cpp
--- a/examples/cohomology/rips-explicit-cohomology.cpp	Tue Feb 09 11:05:48 2010 -0800
+++ b/examples/cohomology/rips-explicit-cohomology.cpp	Mon Feb 22 17:24:02 2010 -0800
@@ -11,9 +11,6 @@
 #include <utilities/counter.h>
 #include <utilities/memory.h>
 
-#include <sys/resource.h>
-#include <malloc.h>
-
 #include <string>
 
 #include <boost/tuple/tuple.hpp>
--- a/examples/cohomology/rips-pairwise-cohomology.cpp	Tue Feb 09 11:05:48 2010 -0800
+++ b/examples/cohomology/rips-pairwise-cohomology.cpp	Mon Feb 22 17:24:02 2010 -0800
@@ -11,9 +11,6 @@
 #include <utilities/counter.h>
 #include <utilities/memory.h>
 
-#include <sys/resource.h>
-#include <malloc.h>
-
 #include <string>
 
 #include <boost/tuple/tuple.hpp>
@@ -133,18 +130,6 @@
         
         #ifdef COUNTERS
         max_element_count = std::max(max_element_count, cCohomologyElementCount->count);
-        // max_memory = std::max(max_memory, report_memory());
-
-        // struct rusage usage;
-        // getrusage(RUSAGE_SELF, &usage);
-        // max_rss = std::max(max_rss, usage.ru_maxrss);
-        // max_ixrss = std::max(max_ixrss, usage.ru_ixrss);
-        // max_idrss = std::max(max_idrss, usage.ru_idrss);
-        // max_isrss = std::max(max_isrss, usage.ru_isrss);
-
-        // struct mallinfo info = mallinfo();
-        // max_uordblks = std::max(max_uordblks, info.uordblks);
-        // max_fordblks = std::max(max_fordblks, info.fordblks);
         #endif
     }
     // output infinte persistence pairs 
@@ -173,9 +158,6 @@
 
     #ifdef COUNTERS
     std::cout << "Max element count: " << max_element_count << std::endl;
-    // std::cout << "Max memory use: " << max_memory << " kB" << std::endl;
-    // std::cout << "Max RSS: " << max_rss << " " << max_ixrss << " " << max_idrss << " " << max_isrss << std::endl;
-    // std::cout << "Max Blks: " << max_uordblks << " " << max_fordblks << std::endl;
     #endif
 }