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()
|
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)
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user