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, log=True, verbose=False, fullReport=False, findCycles=True, threaded=False, doneCallback=None, autoDestroy=False, priority=None, safeMode=False, delOnly=False, collect=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, log=True, verbose=False, fullReport=False, findCycles=True, threaded=False, doneCallback=None, autoDestroy=False, priority=None, safeMode=False, delOnly=False, collect=True)[source]
- notify = <direct.directnotify.Notifier.Notifier object>