Implement increment and add_to_set for CompileEventLogger
Summary:
X-link: https://github.com/pytorch/pytorch/pull/143427
This diff implements `increment` and `add_to_set`, which are features of MetricsContext, but not ChromiumEventLogger. This allows us to add a bunch of other metricscontext callsites to use CompileEventLogger instead.
ghstack-source-id: 261224975
Reviewed By: masnesral
Differential Revision: D67354867
fbshipit-source-id: 143823d838f005fdb00ce853e18c1ec5615562a5