Add memory "profiling" in gate logs.

To see where we are memory wise.

Change-Id: I2ed26b520762232a9f8e55c3f799c50074c4560e
This commit is contained in:
Jean-Philippe Evrard 2017-02-20 20:59:35 +00:00
parent 3835d6dd44
commit 87fd095d65
1 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,8 @@ if [[ -d "/etc/nodepool" ]]; then
${RSYNC_CMD} "${TESTING_HOME}/.ara/ansible.sqlite" "${WORKING_DIR}/logs/" || true
# Generate the ARA report
${ARA_CMD} "${WORKING_DIR}/logs/ara" || true
# output ram usage
free -m > "${WORKING_DIR}/logs/memory-available.txt" || true
# Compress the files gathered so that they do not take up too much space.
# We use 'command' to ensure that we're not executing with some sort of alias.
command gzip --best --recursive "${WORKING_DIR}/logs/"