Closed Bug 1186667 Opened 9 years ago Closed 9 years ago

Correctly report IMAGE_DECODE_COUNT and IMAGE_MAX_DECODE_COUNT telemetry for non-size decodes

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: seth, Assigned: seth)

References

Details

Attachments

(1 file)

In bug 1119774 I accidentally flipped the sense of a boolean check that determined whether we recorded IMAGE_DECODE_COUNT and IMAGE_MAX_DECODE_COUNT telemetry. Previously, we were supposed to record that telemetry only for non-size decodes. The bug made it so that we only record that telemetry for size decodes, which means that the telemetry is no longer usefully measuring redecodes at all. The regression was reported in bug 1126307 but nobody had a chance to investigate at the time.

We noticed the root cause of the issue in bug 1184996. Let's get it fixed!
Here's the patch. It just moves the telemetry code up into the previous |if| condition.
Attachment #8637514 - Flags: review?(tnikkel)
Attachment #8637514 - Flags: review?(tnikkel) → review+
https://hg.mozilla.org/mozilla-central/rev/69bee90b0abc
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: