Samsung Electronics said Thursday that income from memory chips helped it book record quarterly profit for the three months through June.