[PyTorch][kineto] Remove heap-allocated vectors in saveExtraArgs (#69737)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69737
We can use stack allocation instead.
ghstack-source-id: 145312454
Test Plan: Ran internal framework overhead benchmark with --stressTestKinto --kinetoAddFlops, but difference was minimal. Still good to fix.
Reviewed By: chowarfb
Differential Revision: D33007329
fbshipit-source-id: e096312fef5b729cf12580be152c9418683745b8