compute-hops: re-enabled memory usage lookup

Change-Id: I51c7dcac5e6077364da63f4189fea9a90c43e059
This commit is contained in:
Lars Rademacher
2014-01-12 21:46:55 +01:00
parent 5079cd7e31
commit 5df364dea2
2 changed files with 5 additions and 5 deletions

View File

@ -9,5 +9,5 @@ if(NOT CONFIG_INJECTIONPOINT_HOPS)
endif() endif()
add_executable(compute-hops main.cc ${SRCS}) add_executable(compute-hops main.cc ${SRCS})
target_link_libraries(compute-hops ${PROTOBUF_LIBRARY} fail-util fail-comm) target_link_libraries(compute-hops ${PROTOBUF_LIBRARY} fail-util fail-comm procps)
install(TARGETS compute-hops RUNTIME DESTINATION bin) install(TARGETS compute-hops RUNTIME DESTINATION bin)

View File

@ -17,7 +17,7 @@
#include "comm/InjectionPointHopsMessage.pb.h" #include "comm/InjectionPointHopsMessage.pb.h"
// #include <proc/readproc.h> #include <proc/readproc.h>
using std::hex; using std::hex;
using std::dec; using std::dec;
@ -153,9 +153,9 @@ ResultCollector::stopTimer()
void void
ResultCollector::setMaxMemUsage() ResultCollector::setMaxMemUsage()
{ {
// struct proc_t usage; struct proc_t usage;
// look_up_our_self(&usage); look_up_our_self(&usage);
// m_mem_usage = usage.vsize; m_mem_usage = usage.vsize;
} }
void void