[Memory Snapshot] Add Total memory used after allocation in Trace View (#120339)
Summary: Being able to see max allocated helps improve user experience with memory snapshots.
Test Plan:
Before:
![image](https://github.com/pytorch/pytorch/assets/17602366/534001fa-2fbe-4fc5-bd48-cd82f3277941)
After:
![image](https://github.com/pytorch/pytorch/assets/17602366/f8b9a7bc-3a34-4e38-82cb-f766e54b3fd2)
Reviewed By: zdevito
Differential Revision: D53953648
Pulled By: aaronenyeshi
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120339
Approved by: https://github.com/zdevito