This is sloppy: after each ObjectWrap allocation the user needs to call ObjectWrap::InformV8ofAllocation(). In addition each class deriving from ObjectWrap needs to implement the virtual method size() which should return the size of the derived class. If I was better at C++ I could possibly make this less ugly. For now this is how it is. Memory usage looks much better after this commit.
Description
Languages
JavaScript
61.4%
C++
23.3%
Python
10.7%
C
2.8%
HTML
0.7%
Other
1%