Explore PyTorch CUDA memory traces directly in VS Code.
This extension embeds the upstream PyTorch MemoryViz UI inside a webview and bundles all dependencies. You can open .pickle/.pkl or profiler .json traces.
From the MemoryViz tab’s toolbar, choose “Choose files (remote)” to pick traces from your remote workspace, or “Choose files (local)” to pick from your machine
Interact with the chart: zoom, pan, and click a block to inspect the stack.
Tip: To generate traces, see PyTorch documentation for torch.cuda.memory._snapshot() or torch.profiler.profile(..., profile_memory=True).
Requirements
VS Code 1.80+
Trace files generated by PyTorch (CUDA memory snapshot .pickle/.pkl, or profiler .json)
Privacy & Security
All trace files are processed locally within your VS Code session
Feedback / Issues
Open issues and feature requests at the GitHub repository.
For development/build instructions, see CONTRIBUTING.md.