Add memory usage profiling feature
authorInki Dae <inki.dae@samsung.com>
Tue, 7 Apr 2020 06:21:53 +0000 (15:21 +0900)
committerInki Dae <inki.dae@samsung.com>
Tue, 14 Apr 2020 00:42:53 +0000 (09:42 +0900)
commit6c8c9fab242301145f902d6b1312ea9fbb89ea9d
tree7a9dc114e2a097d01910031cf2f10c8b7cb734b8
parent5fd288628cc4ef2645256d3fbbcc08e4e765370b
Add memory usage profiling feature

This patch adds memory usage profiling feature while in runtime.

Basially, there are some procfs to collect memory usage consumed
by current process, and we use /proc/self/stat.

These memory usage data are updated by Linux kernel scheduler so
they should be measured before and after current process.

As for this, this patch adds a new script file, start_profiler.sh.
SO if you want to profile exact memory usage in runtime then
run ./start_profiler.sh on Target.

Ps. the memory usage data can be measred by inference_engine_test app
but the data wouldn't be exact.

Change-Id: I5416587d4847c65538768b15f69f1e23862e2837
Signed-off-by: Inki Dae <inki.dae@samsung.com>
include/inference_engine_profiler.h
packaging/inference-engine-interface.spec
src/inference_engine_common_impl.cpp
src/inference_engine_profiler.cpp
start_profiler.sh [new file with mode: 0644]