Add a system metrics logger and use it in SystemMonitor.

This will help validate that SystemMonitor and the WMIRefresher work as
expected with no noticeable performance impact (in addition to the
metrics logged here the ones logged by WMIRefresher will also start
being emitted).

This logger is behind a feature ("SystemMonitorMetricLogger").

Change-Id: I6fd0ea07c6a25190b43a0abb779762f79da34e06
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1492357
Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org>
Reviewed-by: Jesse Doherty <jwd@chromium.org>
Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#639030}
6 files changed