[jit] Add Python API for ScriptProfile (#57398)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/57398
Test Plan: Imported from OSS
Reviewed By: gmagogsfm
Differential Revision: D28133577
fbshipit-source-id: dcb8338159a24b00b5c495ecec66a3303d9b4aba