shill: Adds UMA stat for scan time held-off by EBUSY.
BUG=chromium:245908
TEST=unittest and manual. For manual test, do the following:
* reboot machine (to force a scan)
* go to chrome://histograms
* search for "Network.Shill.WiFi.ScanTimeInEbusy" -- it should be
there.
Change-Id: I5ff707198cadc23845a40d5beb9d64359e1b5c81
Reviewed-on: https://gerrit.chromium.org/gerrit/57279
Reviewed-by: mukesh agrawal <quiche@chromium.org>
Commit-Queue: Wade Guthrie <wdg@chromium.org>
Reviewed-by: Wade Guthrie <wdg@chromium.org>
Tested-by: Wade Guthrie <wdg@chromium.org>
diff --git a/metrics.h b/metrics.h
index 0e2656d..d95101a 100644
--- a/metrics.h
+++ b/metrics.h
@@ -316,6 +316,8 @@
static const int kMetricFrequenciesConnectedMin;
static const int kMetricFrequenciesConnectedNumBuckets;
+ static const char kMetricWiFiScanTimeInEbusyMilliseconds[];
+
static const char kMetricPowerManagerKey[];
// LinkMonitor statistics.