check to ensure profiler_edge is only added when use_kineto is on (#67494)
Summary:
Fixes #{issue number}
Pull Request resolved: https://github.com/pytorch/pytorch/pull/67494
Reviewed By: jbschlosser
Differential Revision: D32031142
Pulled By: mcr229
fbshipit-source-id: 8267f0e02c5bed0fbc4956af6935a551bedb27ef