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