metrics: refactor counters

The metrics daemon had counter classes that represented
persistent, tagged values, and UMA stats.  To create some
derived UMA stats we need to separate persistency and UMA stats,
and the tagging doesn't help either.

This rewrite is supposed to keep the same functionality.

TEST=ran and checked a few histograms

Change-Id: Ia1121ab2db391d71edffab9f52afe29ce17686ba
Tested-by: Luigi Semenzato <>
Reviewed-by: Luigi Semenzato <>
Commit-Queue: Luigi Semenzato <>
11 files changed
tree: 19f87eabf21e42381e41a586fe5757c2f831bc17
  1. metrics/