# 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: TaskThreaded
TaskThreaded:

## Methods of GarbageLogger:

__init__

## Methods of GarbageReport:

__init__
_getCycles
_getReferents
_getReferrers
destroy
getGarbage
getNumItems
getReport

## Methods of TaskThreaded:

__init__
_doCallback
_doThreadCallback
destroy
finished
getTimeslice
scheduleCallback
scheduleThread
setTimeslice
taskTimeLeft

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

__init__ def __init__(self, name, log=True, verbose=False, fullReport=False, findCycles=True, threaded=False, timeslice=None, doneCallback=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.

getGarbage def getGarbage(self) Undocumented function.

getNumItems def getNumItems(self) Undocumented function.

getReport def getReport(self) Undocumented function.

__init__ def __init__(self, name, threaded=True, timeslice=None, callback=None) Undocumented function.

_doCallback def _doCallback(self, callback, taskName, task) Undocumented function.

_doThreadCallback def _doThreadCallback(self, thread, taskName, task) Undocumented function.

destroy def destroy(self) Undocumented function.

finished def finished(self) Undocumented function.

getTimeslice def getTimeslice(self) Undocumented function.

scheduleCallback def scheduleCallback(self, callback) Undocumented function.

scheduleThread def scheduleThread(self, thread) Undocumented function.

setTimeslice def setTimeslice(self, timeslice) Undocumented function.

taskTimeLeft def taskTimeLeft(self) returns True if there is time left for the current task callback to run without going over the allotted timeslice