Closed Bug 1835172 Opened 3 years ago Closed 3 years ago

Performance API should not clear user entries on memory pressure

Categories

(Core :: Performance: General, defect)

defect

Tracking

()

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: jesup, Assigned: jesup)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The performance API allows for unlimited entries to be added. We added this, but put in code to clear them on memory pressure. The problem with this is that pages calling performance.measure() will throw if the user mark has been cleared out from under them. Pages don't expect this, and a throw there can cause the page to break.

We saw this recently on android with the SP3 benchmark prototype, which would randomly stop if you hit Retest because measure() threw

Assignee: nobody → rjesup
Status: NEW → ASSIGNED
Blocks: 1835572
Pushed by rjesup@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a815fe6c9241 Don't clear performance user entries on MemoryPressure events r=smaug
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: