log memory usage, but not "real" one, as this accounts for extends
new ref friendly gettype()