Record stack contents of method calls