Is the old code still around? If so, then getting gc-messages will tell you. (stack vs. heap) Perhaps there should be some option to print maximal frame size or something?