gpt4 book ai didi

vue.js - Vuex 分析 : How to know a vuex state or a component size in memory

转载 作者:行者123 更新时间:2023-12-03 17:25:47 25 4
gpt4 key购买 nike

有没有办法找到多大尺寸状态(对象、数组等)或组件占用内存。

在我当前的上下文中,我需要知道特定状态/组件是否非常重(就内存而言)。

在 chrome 中,我已经尝试过对内存进行快照,但是在这样的大信息中,我找不到如何在结果中识别特定组件或状态:

enter image description here

最佳答案

对于变量大小,您可以使用此 js function 找到它然后使用控制台日志或使用 google chrome developer tools
对于组件尺寸检查 Linus response .

关于vue.js - Vuex 分析 : How to know a vuex state or a component size in memory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55476617/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com