YongseopKim / ONE

On-device Neural Engine
Other
0 stars 0 forks source link

profile tool - valgrind #6

Closed YongseopKim closed 4 years ago

YongseopKim commented 4 years ago

massif

tools

sudo apt install valgrind
sudo apt install massif-visualizer

run

BACKENDS=cpu valgrind --tool=massif --pages-as-heap=no --detailed-freq=1 ./Product/out/bin/nnpackage_run benchmark_nnpkg_models/inception_v3
valgrind --tool=massif --pages-as-heap=yes --detailed-freq=1 ./Product/out/bin/tflite_run benchmark_nnpkg_models/inception_v3/inception_v3.tflite

options

--quiet --massif-out-file=<file>
--max-snapshots=1000
YongseopKim commented 4 years ago

memcheck

odroid@odroid:/home/dragon/Works/github/ONE$ BACKENDS=cpu \
  valgrind \
  --tool=memcheck \
  --log-file=valgrind_memcheck_enc \
 --leak-check=full --show-leak-kinds=all  \
  ./Product/out/bin/nnpackage_run ./model_e/ -w5 -r10