Add tensorboard_trace_handler for profiler (#50875)
Summary:
Add a tensorboard_trace_handler to output tracing files and formalize the file name for tensorboard plugin.
As discussed in https://github.com/pytorch/pytorch/pull/49231
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50875
Reviewed By: H-Huang
Differential Revision: D26098493
Pulled By: ilia-cher
fbshipit-source-id: 906ea118682f8bff412e76ca3f391bebab23b0ff