From 5df364dea2ec64aab4d666965c808e4389b789a7 Mon Sep 17 00:00:00 2001 From: Lars Rademacher Date: Sun, 12 Jan 2014 21:46:55 +0100 Subject: [PATCH] compute-hops: re-enabled memory usage lookup Change-Id: I51c7dcac5e6077364da63f4189fea9a90c43e059 --- tools/compute-hops/CMakeLists.txt | 2 +- tools/compute-hops/ResultCollector.cc | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/compute-hops/CMakeLists.txt b/tools/compute-hops/CMakeLists.txt index cfc69e51..9d21d7ea 100644 --- a/tools/compute-hops/CMakeLists.txt +++ b/tools/compute-hops/CMakeLists.txt @@ -9,5 +9,5 @@ if(NOT CONFIG_INJECTIONPOINT_HOPS) endif() 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) diff --git a/tools/compute-hops/ResultCollector.cc b/tools/compute-hops/ResultCollector.cc index 11c5ccec..e69d5bb9 100644 --- a/tools/compute-hops/ResultCollector.cc +++ b/tools/compute-hops/ResultCollector.cc @@ -17,7 +17,7 @@ #include "comm/InjectionPointHopsMessage.pb.h" -// #include +#include using std::hex; using std::dec; @@ -153,9 +153,9 @@ ResultCollector::stopTimer() void ResultCollector::setMaxMemUsage() { -// struct proc_t usage; -// look_up_our_self(&usage); -// m_mem_usage = usage.vsize; + struct proc_t usage; + look_up_our_self(&usage); + m_mem_usage = usage.vsize; } void