Call WebConsoleWrapper methods only once from WebConsoleUI.onResourceAvailable/Updated
Categories
(DevTools :: Console, enhancement)
Tracking
(firefox83 fixed)
Tracking | Status | |
---|---|---|
firefox83 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(1 file)
Today, WebConsoleUI methods call WebConsoleWrapper methods once per resource:
https://searchfox.org/mozilla-central/source/devtools/client/webconsole/webconsole-ui.js#405
_onResourceAvailable(resources) {
for (const resource of resources) {
[...]
this.wrapper.dispatchMessageAdd(resource);
}
}
But this is bad for batching as it forces to do one action per resource.
Having said that, WebConsoleWrapper is doing some batching itself in order to mitigate that.
But with the new throttling done in bug 1663614 this will be made unecessary!
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
This will ultimately help get rid of throttling done in WebConsoleWrapper
in favor of the upcoming one to be done from ResourceWatcher.
Assignee | ||
Comment 2•4 years ago
|
||
This patch has no impact on performance:
https://treeherder.mozilla.org/perf.html#/comparesubtest?originalProject=try&newProject=try&newRevision=b48962d37e24d4708c08c253f02b0bf99be9065e&originalSignature=1910071&newSignature=1910071&framework=12&originalRevision=77aecf9a08978ae880c0ffb56bf83e4bbc583c65
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5055331a7b6e Call WebConsoleWrapper methods only once from WebConsoleUI.onResourceAvailable/Updated. r=jdescottes
Comment 4•4 years ago
|
||
Backed out 3 changesets (Bug 1665306, Bug 1665305, Bug 1665293) for dt failures at browser_webconsole_network_attach.js.
https://hg.mozilla.org/integration/autoland/rev/cbedf38923ba0a5425ae5f36b82a797435b8a8e2
Failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=316052586&repo=autoland&lineNumber=4101
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d587f427a634 Call WebConsoleWrapper methods only once from WebConsoleUI.onResourceAvailable/Updated. r=jdescottes
Comment 6•4 years ago
|
||
bugherder |
Description
•