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
Tested-by: Luigi Semenzato <email@example.com>
Reviewed-by: Luigi Semenzato <firstname.lastname@example.org>
Commit-Queue: Luigi Semenzato <email@example.com>
11 files changed