# GarbageReport

from direct.showbase.GarbageReport import GarbageReport

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.

## Inheritance:

GarbageReport: Job
Job: DirectObject
DirectObject:

## Methods of GarbageReport:

__init__
_getCycles
_getReferents
_getReferrers
destroy
finished
getGarbage
getNumItems
getReport
run

## Methods of Job:

__init__
_cleanupGenerator
_getGenerator
_getJobId
destroy
finished
getFinishedEvent
getJobName
getPriority
printingBegin
printingEnd
resume
run
setPriority
suspend

## Methods of DirectObject:

__init__
accept
acceptOnce
classTree
getAllAccepting
ignore
ignoreAll
isAccepting
isIgnoring

__init__ def __init__(self, name, log=True, verbose=False, fullReport=False, findCycles=True, threaded=False, doneCallback=None, autoDestroy=False, priority=None) Undocumented function.

_getCycles def _getCycles(self, index, cycleSets=None) Undocumented function.

_getReferents def _getReferents(self, obj) Undocumented function.

_getReferrers def _getReferrers(self, obj) Undocumented function.

destroy def destroy(self) Undocumented function.

finished def finished(self) Undocumented function.

getGarbage def getGarbage(self) Undocumented function.

getNumItems def getNumItems(self) Undocumented function.

getReport def getReport(self) Undocumented function.

run def run(self) Undocumented function.

__init__ def __init__(self, name) Undocumented function.

_cleanupGenerator def _cleanupGenerator(self) Undocumented function.

_getGenerator def _getGenerator(self) Undocumented function.

_getJobId def _getJobId(self) Undocumented function.

destroy def destroy(self) Undocumented function.

finished def finished(self) Undocumented function.

getFinishedEvent def getFinishedEvent(self) Undocumented function.

getJobName def getJobName(self) Undocumented function.

getPriority def getPriority(self) Undocumented function.

printingBegin def printingBegin(self) Undocumented function.

printingEnd def printingEnd(self) Undocumented function.

resume def resume(self) if self._printing: we may be suspended/resumed multiple times per frame, that gets spammy if we need to pick out the output of a job, put a prefix onto each line of the output print 'JOB:%s:RESUME' % self._name

run def run(self) Undocumented function.

setPriority def setPriority(self, priority) Undocumented function.

suspend def suspend(self) if self._printing: print 'JOB:%s:SUSPEND' % self._name pass

__init__ def __init__(self) Undocumented function.

accept def accept(self, event, method, extraArgs=[]) Undocumented function.

acceptOnce def acceptOnce(self, event, method, extraArgs=[]) Undocumented function.

classTree def classTree(self) Undocumented function.

getAllAccepting def getAllAccepting(self) Undocumented function.

ignore def ignore(self, event) Undocumented function.

ignoreAll def ignoreAll(self) Undocumented function.

isAccepting def isAccepting(self, event) Undocumented function.

isIgnoring def isIgnoring(self, event) Undocumented function.