I am trying to find a memory leak (in my electron app). Amongst other things I tried to interpret a memory dump. Now I wonder about a couple of things:
Is it normal that the application code is stored as string in memory? I wonder especially because there is an extra line below (see 2nd screenshot) listing "compiled code", also occupying memory. Shouldn't the js-strings be cleaned from memory as soon as it's loaded into a data structure? 
I see that some objects are alocating a lot of space, but I don't understand the "Retainers" list. There is a lot of webpack and hot update stuff which seems to reference those objects. How can I distinguish "good references" from "bad references"?
