author | Andrew Osmond <aosmond@mozilla.com> |
Tue, 03 Jul 2018 08:12:17 -0400 | |
changeset 424782 | 546b7b24b71b371321f0cd7b6b49babd09aeddd7 |
parent 424781 | 250255a7e318e8217c73be0a0f3c832927462492 |
child 424783 | 88dde4419f5f11319e7a32be2ba518df6c905f49 |
push id | 104908 |
push user | aosmond@gmail.com |
push date | Tue, 03 Jul 2018 12:12:37 +0000 |
treeherder | mozilla-inbound@546b7b24b71b [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | aosmond |
bugs | 1472145 |
milestone | 63.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/image/imgLoader.cpp +++ b/image/imgLoader.cpp @@ -12,16 +12,17 @@ #include "NullPrincipal.h" #include "mozilla/Attributes.h" #include "mozilla/ClearOnShutdown.h" #include "mozilla/Move.h" #include "mozilla/Preferences.h" #include "mozilla/ChaosMode.h" #include "mozilla/LoadInfo.h" +#include "mozilla/Telemetry.h" #include "nsImageModule.h" #include "imgRequestProxy.h" #include "nsCOMPtr.h" #include "nsContentPolicyUtils.h" #include "nsContentUtils.h" @@ -1353,16 +1354,19 @@ void imgLoader::GlobalInit() sCacheTimeWeight = gfxPrefs::ImageCacheTimeWeight() / 1000.0; int32_t cachesize = gfxPrefs::ImageCacheSize(); sCacheMaxSize = cachesize > 0 ? cachesize : 0; sMemReporter = new imgMemoryReporter(); RegisterStrongMemoryReporter(sMemReporter); RegisterImagesContentUsedUncompressedDistinguishedAmount( imgMemoryReporter::ImagesContentUsedUncompressedDistinguishedAmount); + + Telemetry::ScalarSet(Telemetry::ScalarID::IMAGES_WEBP_PROBE_OBSERVED, false); + Telemetry::ScalarSet(Telemetry::ScalarID::IMAGES_WEBP_CONTENT_OBSERVED, false); } void imgLoader::ShutdownMemoryReporter() { UnregisterImagesContentUsedUncompressedDistinguishedAmount(); UnregisterStrongMemoryReporter(sMemReporter); }