Skip to content

Commit

Permalink
Enhanced mem-stats.txt log
Browse files Browse the repository at this point in the history
  • Loading branch information
radujipa committed Jan 23, 2019
1 parent f79f086 commit 1847caa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions kano_feedback/DataSender.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def get_mem_stats():
mem_stats = ''

out, _, _ = run_cmd('free --human --lohi --total')
mem_stats += out
mem_stats += out + '\n'
out, _, _ = run_cmd('vcgencmd get_mem arm')
mem_stats += out
out, _, _ = run_cmd('vcgencmd get_mem gpu')
Expand All @@ -314,8 +314,12 @@ def get_mem_stats():
out, _, _ = run_cmd('vcgencmd get_mem malloc')
mem_stats += out
out, _, _ = run_cmd('vcgencmd get_mem malloc_total')
mem_stats += out
mem_stats += out + '\n'
out, _, _ = run_cmd('vcgencmd mem_reloc_stats')
mem_stats += out + '\n'
out, _, _ = run_cmd('cat /proc/meminfo')
mem_stats += out + '\n'
out, _, _ = run_cmd('ps -eo pmem,args --no-headers --sort -pmem')
mem_stats += out

return mem_stats
Expand Down

0 comments on commit 1847caa

Please sign in to comment.