Closed Bug 1200169 Opened 9 years ago Closed 8 years ago

We should make the AddonWatcher more tolerant

Categories

(Toolkit :: Performance Monitoring, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: Yoric, Assigned: Yoric)

References

Details

Attachments

(1 file)

If we decide to release the AddonWatcher, we should make sure that, at first, it only flags add-ons that are behaving very, very poorly.
Actually, looks like it's quite tolerant enough already.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
After discussing with avih, we concluded that we should do this nevertheless.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
New strategy:

 - if jank is above freezeThreshold (e.g. 5 seconds), report immediately; otherwise
 - if jank is below jankThreshold (e.g. 128ms), disregard; otherwise
 - if the latest jank was more than prescriptionDelay (e.g. 5 minutes) ago, reset number of occurrences;
 - if we have had fewer than occurrencesBetweenAlerts janks (e.g. 3) since last alert, disregard; otherwise
 - if we have displayed an alert for this add-on less than delayBetweenAlerts ago (e.g. 6h), disregard; otherwise
 - also, don't report more than highestNumberOfAddonsToReport (e.g. 1) at once.

In the long term, I'd like to display only in case of freezes, and let a better UX handle the rest, most likely at startup or once per session.
Bug 1200169 - Making the slow add-on watcher more tolerant;r?felipe

Showing alerts more than once is annoying for the user and basically
useless. We therefore change a bit our strategy:

- if an add-on has behaved correctly for the last 5 minutes, reset our counter of offences;
- don't display alerts for an add-on more than once per 6 hours.

The only exception is if the add-on freezes the browser (i.e. causes
it to stop for more than 5 seconds at a time), in which case we
display the alert regardless of past offences, up to once per 10
minutes.
Attachment #8698390 - Flags: review?(felipc)
Comment on attachment 8698390 [details]
MozReview Request: Bug 1200169 - Making the slow add-on watcher more tolerant;r=felipe

https://reviewboard.mozilla.org/r/27967/#review25483
Attachment #8698390 - Flags: review?(felipc) → review+
Comment on attachment 8698390 [details]
MozReview Request: Bug 1200169 - Making the slow add-on watcher more tolerant;r=felipe

Review request updated; see interdiff: https://reviewboard.mozilla.org/r/27967/diff/1-2/
Attachment #8698390 - Attachment description: MozReview Request: Bug 1200169 - Making the slow add-on watcher more tolerant;r?felipe → MozReview Request: Bug 1200169 - Making the slow add-on watcher more tolerant;r=felipe
Patch uploaded. Thanks for the backout.
Flags: needinfo?(dteller)
Assignee: nobody → dteller
https://hg.mozilla.org/mozilla-central/rev/e43b68cffc6b
Status: REOPENED → RESOLVED
Closed: 9 years ago8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: