more granular memory use logging