support recording mem info
supply count in bytes, not KB