[profiler] Add sequenceNr and fwdThreadId to the trace (#57182)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/57182
Adding sequenceNr and fwdThreadId to the trace, to associate fwd ops with
backward ops
Test Plan: CI
Reviewed By: xuzhao9
Differential Revision: D28070725
fbshipit-source-id: aa4db580c9fd3ed061eaceb5239f4d9b2f8da3dc