[memory_viz] profile_plot generates snapshot objects (#103497)
This will make it easier to use a single html viewer for
both ways of generating the data. The next PR will change MemoryPlot.js
to simply read the snapshot information directly.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/103497
Approved by: https://github.com/eellison