# GarbageLogger

from direct.showbase.GarbageReport import GarbageLogger

If you just want to log the current garbage to the log file, make one of these. It automatically destroys itself after logging

## Inheritance:

GarbageLogger: GarbageReport
GarbageReport: Job
Job: DirectObject
DirectObject:

## Methods of GarbageLogger:

__init__

## Methods of GarbageReport:

__init__
_getCycles
_getNormalizedCycle
_getReferents
_getReferrers
destroy
finished
getDesc2numDict
getGarbage
getNumCycles
getReport
run

## Methods of Job:

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

## Methods of DirectObject:

__init__
_addTask
_clearTask
accept
acceptOnce
addTask
classTree
detectLeaks
doMethodLater
getAllAccepting
ignore
ignoreAll
isAccepting
isIgnoring
removeAllTasks
removeTask

__init__ def __init__(self, name, *args, **kArgs) Undocumented function.

__init__ def __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) Undocumented function.

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

_getNormalizedCycle def _getNormalizedCycle(self, cycle) 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.

getDesc2numDict def getDesc2numDict(self) Undocumented function.

getGarbage def getGarbage(self) Undocumented function.

getNumCycles def getNumCycles(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.

_setFinished def _setFinished(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.

isFinished def isFinished(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.

_addTask def _addTask(self, task) Undocumented function.

_clearTask def _clearTask(self, task) Undocumented function.

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

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

addTask def addTask(self, *args, **kwargs) Undocumented function.

classTree def classTree(self) Undocumented function.

detectLeaks def detectLeaks(self) Undocumented function.

doMethodLater def doMethodLater(self, *args, **kwargs) 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.

removeAllTasks def removeAllTasks(self) Undocumented function.

removeTask def removeTask(self, taskOrName) Undocumented function.