зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
08d52d1c56
Коммит
ab57e86bc7
|
@ -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)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче