When Tesla Inc. reports second-quarter results after the bell on Wednesday, investors will be keen to see whether the electric carmaker has delivered a profit during the global pandemic that has sunk most of its internal combustion rivals deep in red ink.