compute-hops: re-enabled memory usage lookup
Change-Id: I51c7dcac5e6077364da63f4189fea9a90c43e059
This commit is contained in:
@ -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)
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
|
||||
#include "comm/InjectionPointHopsMessage.pb.h"
|
||||
|
||||
// #include <proc/readproc.h>
|
||||
#include <proc/readproc.h>
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user