Marathon Petroleum, which was spun off from Marathon Oil Corp a year ago, posted a profit of $814 million, or $2.38 per share, compared with $802 million or $2.24 per share in the same period a year earlier.