[profiler] Support for trace metadata (#56575)
Summary:
Adding support for user defined trace metadata
Pull Request resolved: https://github.com/pytorch/pytorch/pull/56575
Test Plan: python test/test_profiler.py TestProfiler.test_profiler_metadata
Reviewed By: gdankel
Differential Revision: D27957876
Pulled By: ilia-cher
fbshipit-source-id: 8b6c254cca97eca23fc418e37e5772b207b0525a