memory alloc measure