Memory Visualization

Interactive HTML visualization with four tabs.

Usage

memguard viz <scan-id>    # opens in browser

Also appears inline in the web dashboard after scanning.

Tabs

  • Memory Profile - SVG line chart of cumulative heap usage with peak marker and leaked indicator

  • Allocation Table - Sortable table with Function, Via, Location, Size bar, Status badge. Click rows for detail drawer.

  • Heap Treemap - Proportional colored boxes (red = leaked, green = freed)

  • Ownership Flow - Curved SVG arrows between function nodes showing pointer ownership transfer