direct.showbase.GarbageReport

from direct.showbase.GarbageReport import FakeDelObject, FakeObject, GarbageLogger, GarbageReport, b_checkForGarbageLeaks, checkForGarbageLeaks

Contains utility classes for debugging memory leaks.

Inheritance diagram

Inheritance diagram of direct.showbase.GarbageReport

class FakeDelObject[source]

Bases: object

class FakeObject[source]

Bases: object

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

__init__(self, name, *args, **kArgs)[source]
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]
destroy(self)[source]
finished(self)[source]
getDesc2numDict(self)[source]
getGarbage(self)[source]
getNumCycles(self)[source]
getReport(self)[source]
notify = <direct.directnotify.Notifier.Notifier object>
run(self)[source]
b_checkForGarbageLeaks(wantReply=False)[source]
checkForGarbageLeaks()[source]