[Profiler][trivial] Add profiler options to trace metadata (#87102)
Summary: Add profiler options (`profile_memory`, `record_shapes`, `with_stack`, `with_modules`, and `with_flops`) to trace metadata
Test Plan: CI tests
Differential Revision: D40373514
Pull Request resolved: https://github.com/pytorch/pytorch/pull/87102
Approved by: https://github.com/aaronenyeshi