Technology giant Samsung Electronics posted a record operating profit for the quarter ended June 30, while its revenue reached an all-time high of 171.5 trillion won ($119 billion), driven by its semiconductor business.