### Summary Add a profiler to the C++ PyTorch backend, controlled with the environment variables. This is for developing purposes. ### Detailed Description Using `torch::autograd::profiler::RecordProfile`. ### Further Information, Files, and Links _No response_