Closed Bug 1612589 Opened 4 years ago Closed 4 years ago

Images memory reporting excluding footprint for many surface types

Categories

(Core :: Graphics: ImageLib, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

Attachments

(1 file)

Optimized source surfaces may be stored in imagelib's surface cache. These may not implement DataSourceSurface::AddSizeOfExcludingThis. This should be moved to SourceSurface and we should add a new type for "not sure" (may be heap, may not be heap). This can produce very misleading footprint reporting for images on perfherder.

This patch adds reporting the surface types used by the image frame in a
bit mask (such if it is a CAPTURE including a DATA_SHARED, the mask will
be 1 << CAPTURE | 1 << DATA_SHARED), as well as an estimated size
included in the report as decoded-unknown for when we do not know if the
surface is on the heap or the non-heap specifically. This is the default
implementation for a SourceSurface as well, so we should no longer have
the case where surfaces appear empty despite being in the cache. It also
makes requests being validated as always notable for reporting purposes.

Bumping priority due to its utility in debugging the true memory footprint and future images missing issues; the surface types mask would have been instrumental in solving bug 1612207, for example.

Priority: P3 → P2
See Also: → 1609672
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b2dbb80db855
Improve image memory reporting even further. r=tnikkel

Please note this bug may cause "memory regressions" because the images reporting simply didn't record certain surfaces. This is not a true regression, just more accurate reporting.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Regressions: 1613930

== Change summary for alert #24856 (as of Wed, 05 Feb 2020 17:54:15 GMT) ==

Improvements:

2% Images macosx1014-64-shippable opt tp6 7,794,899.26 -> 7,613,702.64

For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=24856

That is surprising...

Regressions: 1615539
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: