examples/cohomology/rips-pairwise-cohomology.cpp
branchdev
changeset 244 66235db8d8b7
parent 18725e468323d77
       1 --- a/examples/cohomology/rips-pairwise-cohomology.cpp	Thu Jan 07 10:27:18 2010 -0800
       2 +++ b/examples/cohomology/rips-pairwise-cohomology.cpp	Mon Jul 25 23:21:29 2011 -0700
       3 @@ -10,9 +10,6 @@
       4  #include <utilities/log.h>
       5  #include <utilities/counter.h>
       6  #include <utilities/memory.h>
       7 -
       8 -#include <sys/resource.h>
       9 -#include <malloc.h>
      10  
      11  #include <string>
      12  
      13 @@ -133,18 +130,6 @@
      14          
      15          #ifdef COUNTERS
      16          max_element_count = std::max(max_element_count, cCohomologyElementCount->count);
      17 -        // max_memory = std::max(max_memory, report_memory());
      18 -
      19 -        // struct rusage usage;
      20 -        // getrusage(RUSAGE_SELF, &usage);
      21 -        // max_rss = std::max(max_rss, usage.ru_maxrss);
      22 -        // max_ixrss = std::max(max_ixrss, usage.ru_ixrss);
      23 -        // max_idrss = std::max(max_idrss, usage.ru_idrss);
      24 -        // max_isrss = std::max(max_isrss, usage.ru_isrss);
      25 -
      26 -        // struct mallinfo info = mallinfo();
      27 -        // max_uordblks = std::max(max_uordblks, info.uordblks);
      28 -        // max_fordblks = std::max(max_fordblks, info.fordblks);
      29          #endif
      30      }
      31      // output infinte persistence pairs 
      32 @@ -173,9 +158,6 @@
      33  
      34      #ifdef COUNTERS
      35      std::cout << "Max element count: " << max_element_count << std::endl;
      36 -    // std::cout << "Max memory use: " << max_memory << " kB" << std::endl;
      37 -    // std::cout << "Max RSS: " << max_rss << " " << max_ixrss << " " << max_idrss << " " << max_isrss << std::endl;
      38 -    // std::cout << "Max Blks: " << max_uordblks << " " << max_fordblks << std::endl;
      39      #endif
      40  }
      41