On this page
gc.get_freeze_count
Prev: gc.get_debug | Up: gc | Next: gc.get_objects
Rel: gc.collect, gc.disable, gc.enable, gc.freeze
Ref: docs.python.org — gc.get_freeze_count
Tags: #public #python3 #stdlib #gc
Import
import gc
from gc import get_freeze_count
Signature & Overview
gc.get_freeze_count()
Return the number of objects in the permanent generation.
Usage
import gc
assert isinstance(gc.get_freeze_count(), int) and gc.get_freeze_count() >= 0
Gotchas
- Number of objects currently frozen by
gc.freeze().
REPL Inspect
from gc import get_freeze_count
help(get_freeze_count)
Linked from
Related notes
- tuts/python3/stdlib_module/gc/get_debug Linked here; links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_objects Linked here; links to this page; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/gc/collect Linked here; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/disable Linked here; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/enable Linked here; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/freeze Linked here; shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_count shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_referents shared tags: #gc, #stdlib
- tuts/python3/stdlib_module/gc/get_referrers shared tags: #gc, #stdlib