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