Procter & Gamble Co. and its peers have vowed to recapture profit margins that slipped during the pandemic. Now, investors are getting a chance to gauge their progress.