Add start/stop in profile class to support non-context manager scenarios. https://github.com/pytorch/pytorch/issues/60238