Skip to content

automated/android/ion-monitor-tool/ion-monitor-tool

Description

Run ion monitor tool to check memory leaks.

Maintainer

  • axel.lebourhis@linaro.org

OS

  • ubuntu

Scope

Devices

  • lxc

Steps to reproduce

  • cd ./automated/android/ion-monitor-tool
  • . ./setup.sh
  • echo "Setup done"
  • wget ${BINARY_URL} -O ion-monitor-tool.bin
  • adb push ./ion-monitor-tool.bin /data
  • ./runner.sh -h ${HEAP} -r ${REPEAT} -c ${CLEAR} -s ${SECURE} -u ${UHD}
  • mkdir -p ./output
  • adb pull /data/allocated_size.log ./output
  • adb pull /data/free_size.log ./output
  • adb pull /data/allocated_peak.log ./output
  • adb pull /data/largest_free_buffer.log ./output
  • adb pull /data/heap_fragmentation.log ./output
  • ATTACHMENT="ion-monitor-tool-$(date +%Y%m%d-%H%M).tar.xz"
  • tar caf "${ATTACHMENT}" output
  • if [ ! -z "${UPLOAD_URL}" ]; then curl -F "file=@${ATTACHMENT}" "${UPLOAD_URL}"; fi
  • if [ ! -z "${UPLOAD_URL}" ]; then lava-test-reference "test-attachment" --result "pass" --reference "${UPLOAD_URL}${ATTACHMENT}"; fi