Inspect GC activity when memory grows unexpectedly.
Section: Memory Growth
Show garbage collector stats
python
python
import gc
print(gc.get_count())
print(gc.get_stats())Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Memory Growth