[tensorexpr] Add a stmt recorder to obtain stmt PCs (#66450)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/66450
Test Plan: Imported from OSS
Reviewed By: navahgar, ZolotukhinM
Differential Revision: D31557189
Pulled By: huiguoo
fbshipit-source-id: 416d79ddfc46a0109187cdeb919ad9b5abde8030