MemoryTracker
Tracks memory allocation events and reports aggregate statistics across all live TensorStorage instances.
Use record to log storage creation, and report to get a snapshot of current memory usage. This is primarily for debugging and regression testing (e.g., "assert no unexpected copies in this inference pass").