Samsung reported a record quarterly profit on Thursday thanks to strong demand for semiconductors used in servers, despite weakness in the global smartphone market that the company said could slow earnings growth.