Fix bug involving missing compilation_metrics fields in tlparse logs (#142423)
Summary:
The line of code that's compiling the set of compilation_metrics to include in the corresponding tlparse log is missing the "legacy" and "common" fields populated above. Fix is to make sure we consider all fields in the compilation_metrics object.
X-link: https://github.com/pytorch/pytorch/pull/142423
Approved by: https://github.com/ezyang
Reviewed By: clee2000
Differential Revision: D67035496
Pulled By: masnesral
fbshipit-source-id: f39c97b97fae00ab5d2882ba106784a33defbdc1