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

Memory leak in the Timeline #2187

Open
star-ll opened this issue Sep 13, 2024 · 0 comments
Open

Memory leak in the Timeline #2187

star-ll opened this issue Sep 13, 2024 · 0 comments

Comments

@star-ll
Copy link

star-ll commented Sep 13, 2024

What problem does this feature solve?

issue

vue-devtools version is 6.5.1

By analyzing the browser's memory tools leads to this conclusion window.__vdevtools_ctx has a memory leak

image

image

image

By analyzing the execution stack, it can be determined that the memory leak is due to timeline tab. When devtool starts, the timeline will automatically record vuex events and make a deep copy of the state(it is stored in window.__vdevtools_ctx.timelineEventMap), which, if the state is large and frequently modified, will cause the memory footprint to keep growing and not be freed up.

proposal

Add a button to start record in timeline tab, instead of automatically starting record event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant