Skip to content
Snippets Groups Projects
Commit c200e15e authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "lrdp_v2 : Print Unaccounted memory in memstat"

parents 2bd31336 253cf2d3
No related branches found
No related tags found
No related merge requests found
......@@ -222,6 +222,11 @@ class MemStats(RamParser):
# vmalloc area
self.calculate_vmalloc()
accounted_mem = total_free + total_slab + ion_mem + kgsl_memory + \
self.vmalloc_size + other_mem
unaccounted_mem = total_mem - accounted_mem
# Output prints
out_mem_stat.write('{0:30}: {1:8} MB'.format(
"Total RAM", total_mem))
......@@ -241,6 +246,8 @@ class MemStats(RamParser):
"Others ", other_mem))
out_mem_stat.write('\n{0:30}: {1:8} MB'.format(
"Cached ",cached))
out_mem_stat.write('\n\n{0:30}: {1:8} MB'.format(
"Total Unaccounted Memory ",unaccounted_mem))
def parse(self):
with self.ramdump.open_file('mem_stat.txt') as out_mem_stat:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment