[Fix] Fix ProfileHook
cannot profile ddp-training
#1140
Merged
ProfileHook
cannot profile ddp-training
#1140