Revert "Revert D25199264: Enable callgrind collection for C++ snippets" (#48720)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/48720
This reverts commit 6646ff122d3215b77909f669fc26cf6a927030db.
Test Plan: Imported from OSS
Reviewed By: malfet
Differential Revision: D25273994
Pulled By: malfet
fbshipit-source-id: 61743176dc650136622e1b8f2384bbfbd7a46294