我在 Microsoft Edge 浏览器中遇到内存“泄漏”问题。
当我运行内存分析会话并拍摄多个快照时,我看到快照之间的内存被释放。但总内存消耗不断增长(见图)。
快照之间的内存差异在于 iframe 被添加然后从 DOM 中删除。
这怎么可能 ?
我一直在使用 Edge 内存分析器来尝试使用 iFrame 测试内存泄漏。我们发现Edge Profiler 本身在添加和删除 iFrame 的情况下会泄漏内存.
When tested with the Windows OS performance monitor, I saw a huge difference in adding and removing iFrames without the Edge profiler on versus with it on. See the following graph from the OS performance monitor.
Without the performance monitor on, I add and remove many iFrames repeatedly-- this graph shows perhaps the add/remove of 50 iFrames. The memory used by Edge stays constant around 400MG used by the process. Then, I open dev tools, turn on the memory profiler, and add and remove about 10 iFrames. We see the memory used by Edge shoots up from about 400MG to over 1000MG in a short amount of time.
As such, I no longer trust this profiler for memory testing.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)