Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU usage and DOM nodes when logs output is maximised #30658

Open
alandeg opened this issue Nov 20, 2024 · 2 comments
Open

High CPU usage and DOM nodes when logs output is maximised #30658

alandeg opened this issue Nov 20, 2024 · 2 comments
Labels
stage: needs information Not enough info to reproduce the issue type: performance 🏃‍♀️ Performance related

Comments

@alandeg
Copy link

alandeg commented Nov 20, 2024

Test code to reproduce

Any test code will show the same result, the longer the log output, the greater the impact.

There must be some sort of memory/resource usage leak when the logs viewer is maximised, as when it is minimised the number of DOM nodes and CPU usage settles

Cypress Mode

cypress open

Cypress Version

13.16.0

Browser Version

Brave Version 1.73.89 Chromium: 131.0.6778.69 (Official Build) (arm64)

Node version

18.19.1

Operating System

macOS 15.1

Memory Debug Logs

No response

Other

Monosnap.screencast.2024-11-20.18-00-02.mp4

Have a look at this video which clearly shows the issue

@ryanthemanuel
Copy link
Collaborator

Hi @alandeg. Can you share your test code? I'm curious about how long the test is. Also, it appears that there are several script logs whose spinners are spinning. Do you see the # of those logs increasing over time or is it fairly constant?

@alandeg
Copy link
Author

alandeg commented Nov 21, 2024

The test code is not simple since it is part of a much larger test suite, so I would say it's not possible to share it in it's entirety here. I can try to replicate using a simpler example and share it here.

Regarding your other question, it looks like the number of DOM nodes being created is quite constant when the logs viewer is open, it could very well be due to the number of spinner animations present, since this particular test is quite a long one to finish running. Do you know why the spinners remain animating? Even after the test has completed, as with this case

@jennifer-shehane jennifer-shehane added type: performance 🏃‍♀️ Performance related stage: needs information Not enough info to reproduce the issue labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue type: performance 🏃‍♀️ Performance related
Projects
None yet
Development

No branches or pull requests

3 participants