add memory measure