Python Memory Visualizer

See how Python allocates variables in RAM

???? Educational Tool Python 3
main.py
1

Quick Examples

Python Memory Concepts

  • Heap: Every value is an object stored in RAM.
  • References: Variables are just labels pointing to objects.
  • Ref Counting: When references hit 0, memory is freed.
  • Interning: Small ints and short strings are reused automatically.

Variables

0

Objects

0

RAM Used

0 B

Freed

0 B

Variable Stack

Name ? Object ID mapping

No variables yet

Heap Memory (RAM)

? Live objects
int float str bool NoneType list dict
RAM is empty — write some Python and hit Run!
Console Output
# Run your code to see output here...

Object Inspector