Merging the implementations of ClearProfiling (#67575)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/67575
Test Plan: Imported from OSS
Reviewed By: malfet
Differential Revision: D32175959
Pulled By: Gamrix
fbshipit-source-id: b335dacce709a64e3d5779f9c6e9569f86e10748