Sounds like a good idea with the
E.getSizeOf. I'm still reading manuals and learning. Let me see what I can do with it.
When you say "things are interlinked" and "separating everything is painful", do you mean that the memory used by a widget might not be continuous? So that it is hard to follow all links/pointers internally?