Content process freeze when opening the devtools in a project that has a lot of files in the same directory
Categories
(DevTools :: Debugger, defect)
Tracking
(Performance Impact:?, firefox124 fixed)
Tracking | Status | |
---|---|---|
firefox124 | --- | fixed |
People
(Reporter: julienw, Assigned: ochameau)
References
Details
Attachments
(1 file)
STR:
- Clone the repository https://github.com/julienw/devtools-sort-sources-problem
- Run
npm i
thennpm run dev
in it - Open http://localhost:5173 (or whatever other link displayed in the terminal)
- Open the devtools
=> When the sources are discovered, the content process freezes during a few seconds.
A profile (https://share.firefox.dev/3HUebSA) shows a problem in https://searchfox.org/mozilla-central/rev/c036a209f5a2c3163d1277ee2b7becaab2f79dbd/devtools/client/debugger/src/reducers/sources-tree.js#344-345
We're sorting each time we add a new file in a specific directory (I think).
The problem in the project is how we import icons. The MUI documentation says we should do this:
import AbcIcon from '@mui/icons-material/Abc';
But I did this instead
import { Abc as AbcIcon } from '@mui/icons-material';
As a result, I believe all of the icons-material library is loaded. In this library all files are in the same directory.
If in my project I use the recommended way to import icons, I don't have the problem anymore.
Reporter | ||
Comment 1•1 year ago
|
||
Opening the directory in the Sources view is also pretty slow, here is a profile: https://share.firefox.dev/49w46Hw
This might just be because the file list in this directory is very long and therefore there are a lot of things to display (500ms Reflow).
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Comment 4•1 year ago
|
||
Backed out for causing devtools failures at devtools/client/debugger/test/mochitest/browser_dbg-features-browser-toolbox-source-tree.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/2b1d7180d270c505324ee8a9aad5360f379c27d9
Assignee | ||
Comment 5•1 year ago
|
||
It should be green now:
https://treeherder.mozilla.org/jobs?repo=try&revision=98ae32086b38467893d6b6888674e601c675a683
Comment 7•1 year ago
|
||
bugherder |
Comment 8•1 year ago
|
||
bugherder |
Comment 9•1 year ago
|
||
== Change summary for alert #41492 (as of Thu, 15 Feb 2024 22:57:51 GMT) ==
Regressions:
Ratio | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|
3% | damp custom.jsdebugger.pause.DAMP | linux1804-64-shippable-qr | e10s fission stylo webrender | 772.52 -> 795.73 |
Improvements:
Ratio | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|
8% | damp custom.jsdebugger.open.DAMP | windows10-64-shippable-qr | e10s fission stylo webrender | 780.52 -> 721.99 |
7% | damp custom.jsdebugger.open.DAMP | windows10-64-shippable-qr | e10s fission stylo webrender-sw | 782.16 -> 723.71 |
7% | damp custom.jsdebugger.open.DAMP | linux1804-64-shippable-qr | e10s fission stylo webrender | 948.49 -> 877.72 |
7% | damp custom.jsdebugger.pause.DAMP | windows10-64-shippable-qr | e10s fission stylo webrender-sw | 578.56 -> 536.91 |
7% | damp custom.jsdebugger.pause.DAMP | windows10-64-shippable-qr | e10s fission stylo webrender | 577.43 -> 538.45 |
... | ... | ... | ... | ... |
5% | damp custom.jsdebugger.reload.DAMP | windows10-64-shippable-qr | e10s fission stylo webrender-sw | 845.52 -> 806.94 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=41492
Description
•