Move list size constants for profiler::Event and profiler::ProfilerConfig into (#40474)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40474
These constants are unnecessary since there is an enum, and we can add
the size at the end of the enum and it will be equal to the list size. I
believe that this is the typical pattern used to represent enum sizes.
ghstack-source-id: 107969012
Test Plan: CI
Reviewed By: ezyang
Differential Revision: D22147754
fbshipit-source-id: 7064a897a07f9104da5953c2f87b58179df8ea84