diff --git a/image/imgLoader.cpp b/image/imgLoader.cpp index 93a181c70999..3624eb2262a3 100644 --- a/image/imgLoader.cpp +++ b/image/imgLoader.cpp @@ -15,7 +15,6 @@ #include "mozilla/Move.h" #include "mozilla/Preferences.h" #include "mozilla/ChaosMode.h" -#include "mozilla/Telemetry.h" #include "nsImageModule.h" #include "imgRequestProxy.h" @@ -2090,12 +2089,6 @@ imgLoader::LoadImage(nsIURI* aURI, const nsAString& initiatorType, imgRequestProxy** _retval) { - // Note: We round the time to the nearest milliseconds. Due to this rounding, - // the actual minimum value is 500 microseconds. - static const uint32_t kMinTelemetryLatencyMs = 1; - - mozilla::TimeStamp start = TimeStamp::Now(); - VerifyCacheSizes(); NS_ASSERTION(aURI, "imgLoader::LoadImage -- NULL URI pointer"); @@ -2343,11 +2336,8 @@ imgLoader::LoadImage(nsIURI* aURI, if (!newChannel) { proxy->NotifyListener(); } - } - uint32_t latencyMs = round((TimeStamp::Now() - start).ToMilliseconds()); - if (XRE_IsContentProcess() && latencyMs >= kMinTelemetryLatencyMs) { - Telemetry::Accumulate(Telemetry::IMAGE_LOAD_TRIGGER_LATENCY_MS, latencyMs); + return rv; } NS_ASSERTION(*_retval, "imgLoader::LoadImage -- no return value"); diff --git a/toolkit/components/telemetry/Histograms.json b/toolkit/components/telemetry/Histograms.json index 0e6b570d23ce..e895c4939198 100644 --- a/toolkit/components/telemetry/Histograms.json +++ b/toolkit/components/telemetry/Histograms.json @@ -1608,16 +1608,6 @@ "n_buckets": 50, "description": "GIF image decode speed (Kbytes/sec)" }, - "IMAGE_LOAD_TRIGGER_LATENCY_MS": { - "alert_emails": ["ehsan@mozilla.com", "gfx-telemetry-alerts@mozilla.com"], - "expires_in_version": "60", - "bug_numbers": [1347376], - "kind": "exponential", - "low": 1, - "high": 1000, - "n_buckets": 50, - "description": "Measures the number of milliseconds we spend inside imgLoader::LoadImage(). Note: only calls that take more than 500 microseconds and happen in the content process are included in this probe." - }, "IMAGE_DECODE_SPEED_PNG": { "alert_emails": ["gfx-telemetry-alerts@mozilla.com"], "expires_in_version": "never",