[WIP] Move profiler to a dispatch wrapper (#33057)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/33057
Test Plan: Imported from OSS
Differential Revision: D19775659
Pulled By: jamesr66a
fbshipit-source-id: 5cbe5f736660c8543764ef62b16550638d9ceb72