Bug 1523340 - Reduce scope of memory telemetry warning. r=kmag

Don't warn about measurements that aren't available for the current platform.

Differential Revision: https://phabricator.services.mozilla.com/D17862

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eric Rahm 2019-01-28 23:51:34 +00:00
Родитель 08d52d1c56
Коммит ab57e86bc7
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -237,8 +237,10 @@ nsresult MemoryTelemetry::GatherReports(
do { \
int64_t amt; \
nsresult rv = mgr->Get##metric(&amt); \
if (!NS_WARN_IF(NS_FAILED(rv))) { \
if (NS_SUCCEEDED(rv)) { \
HandleMemoryReport(Telemetry::id, nsIMemoryReporter::units, amt); \
} else if (rv != NS_ERROR_NOT_AVAILABLE) { \
NS_WARNING("Failed to retrieve memory telemetry for " # metric); \
} \
} while (0)