Skip to content

Commit

Permalink
added Memory Available metric (total-used)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Lewis committed Feb 2, 2012
1 parent 6e20f9e commit b4ac561
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions memory_profiler/memory_profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def linux_memory

report_data['Memory Total'] = mem_total
report_data['Memory Used'] = mem_used
report_data['Memory Available'] = mem_total - mem_used
report_data['% Memory Used'] = mem_percent_used

report_data['Swap Total'] = swap_total
Expand Down
3 changes: 3 additions & 0 deletions memory_profiler/memory_profiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
Memory Used:
units: MB
precision: 0
Memory Available:
units: MB
precision: 0
% Memory Used:
units: %
precision: 0
Expand Down

0 comments on commit b4ac561

Please sign in to comment.