pytorch/features: Make a feature logger and record triton bundling (#141056)
Summary:
This modifies metrics_context to allow us to store whether a feature was
used or not.
This also starts recording this for triton bundling.
X-link: https://github.com/pytorch/pytorch/pull/141056
Approved by: https://github.com/masnesral
Reviewed By: izaitsevfb
Differential Revision: D66350649
Pulled By: c00w
fbshipit-source-id: 63f5014df4f8adf7bb2bf82e645b59076b3aa697