direct.showbase.GarbageReport
from direct.showbase.GarbageReport import FakeDelObject, FakeObject, GarbageLogger, GarbageReport, b_checkForGarbageLeaks, checkForGarbageLeaks
Contains utility classes for debugging memory leaks.
Inheritance diagram
- class GarbageLogger(name, *args, **kArgs)[source]
Bases:
GarbageReport
If you just want to log the current garbage to the log file, make one of these. It automatically destroys itself after logging
- class GarbageReport(name: str, log: bool = True, verbose: bool = False, fullReport: bool = False, findCycles: bool = True, threaded: bool = False, doneCallback: collections.abc.Callable[[direct.showbase.GarbageReport.GarbageReport], object] | None = None, autoDestroy: bool = False, priority: int | None = None, safeMode: bool = False, delOnly: bool = False, collect: bool = True)[source]
Bases:
Job
Detects leaked Python objects (via gc.collect()) and reports on garbage items, garbage-to-garbage references, and garbage cycles. If you just want to dump the report to the log, use GarbageLogger.
- __init__(self, name: str, log: bool = True, verbose: bool = False, fullReport: bool = False, findCycles: bool = True, threaded: bool = False, doneCallback: collections.abc.Callable[[direct.showbase.GarbageReport.GarbageReport], object] | None = None, autoDestroy: bool = False, priority: int | None = None, safeMode: bool = False, delOnly: bool = False, collect: bool = True) None [source]
- notify = <direct.directnotify.Notifier.Notifier object>