Add symbol guard counts instrumentation (#119290)
This helps us understand if there are symbols which are extremely hot
(i.e., have a lot of guards mentioning them). Extremely hot symbols are
candidates for being turned static.
Signed-off-by: Edward Z. Yang <ezyang@meta.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119290
Approved by: https://github.com/bdhirsh