Closed Bug 1686036 Opened 5 years ago Closed 5 years ago

DAMP Perf regression in panelsInBackground.reload (100%) (+ others)

Categories

(DevTools :: General, defect, P2)

defect

Tracking

(firefox-esr78 unaffected, firefox84 unaffected, firefox85 unaffected, firefox86 fixed)

RESOLVED FIXED
86 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox84 --- unaffected
firefox85 --- unaffected
firefox86 --- fixed

People

(Reporter: jdescottes, Assigned: nchevobbe)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Several performance changes that seem linked to the error count:
https://treeherder.mozilla.org/perfherder/alerts?id=28359&hideDwnToInv=0

Most visible is a 100% regression on panelsInBackground reload.

We should take a look and investigate this.

Flags: needinfo?(jdescottes)

Set release status flags based on info from the regressing bug 1109362

Severity: -- → S3
Flags: needinfo?(jdescottes)
Priority: -- → P2

I'll investigate this

Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Component: Console → General

In setErrorCount, we used to call setToolboxButtons unconditionally, which means
that it was called each time a resource was added or updated.
This was very expensive and would cause some slowness, especially on pages with
a lot of network requests, as revealed by DAMP tests.

In this patch, we don't call setToolboxButtons if the error count did not change.
On top of that, we add a throttle mechanism so the function can't be called more
than twice per second.

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b300d2dfebc4 [devtools] Avoid error count icon unnecessary render. r=jdescottes.

Note: we regressed the performance again with https://bugzilla.mozilla.org/show_bug.cgi?id=1685985, but the patch attached here seems to fix both regressions and bring us back to the initial baseline.

https://treeherder.mozilla.org/perfherder/alerts?id=28473&hideDwnToInv=0

Regressed by: 1685985
Has Regression Range: --- → yes
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: