Memory behavior logger