Add meminfo swap metrics.

The current metrics don't show how much swap we're using at a given
time.  We only have indirect measures (page faults rate for instance).

We also need to add one type of histogram scale, since compressed swap
can exceed total RAM, and all current histograms are on a scale from
zero to total RAM.

TEST=stared at the code really hard and compiled it

Change-Id: Icb9dce5efe5dbd78123aad51ffd369cb46721096
Reviewed-by: Sonny Rao <>
Commit-Queue: Luigi Semenzato <>
Tested-by: Luigi Semenzato <>
2 files changed
tree: d4bc05d40f0c463815d58afc7732da53a5e61d3d
  1. metrics/