🗑
Garbage Collector Visualizer
Build object graphs and watch garbage collection algorithms trace references, mark reachable objects, and sweep garbage. Compare mark-and-sweep, reference counting, and generational GC.
Traces from roots to mark reachable objects, then sweeps unmarked ones.
Presets:
How to use: Drag objects to move them. Shift+drag from one object to another to create a reference. Click on a reference arrow to delete it. Click on a root arrow to remove the root reference.
Live Objects
0
Garbage Collected
0
Total Allocations
0
GC Pause (ms)
0
All algorithms run entirely in your browser. No data is sent anywhere.