Adding debugging metrics to process group agent
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/30884
Test Plan: Imported from OSS
Differential Revision: D18857140
Pulled By: mrshenli
fbshipit-source-id: 4ec61d13778dd49467159d0db4b6dd51feaf282b