I have a memory "leak" problem in Microsoft Edge browser.
When I run a memory profiling session and take several snapshots, I see the memory between snapshot being freed. but the total memory consumption keep growing (see image).
The memory difference between snapshots are an iframe being add and then removed from the DOM.
How is this possible ?
I have been using the Edge memory profiler to try to test memory leaks with an iFrame as well. We found that the Edge profiler itself leaks memory in the context of adding and removing iFrames.
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.