Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
GarbageReport Class Reference
Inheritance diagram for GarbageReport:
Job DirectObject GarbageLogger

Public Member Functions

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)
 
def destroy (self)
 
def finished (self)
 
def getDesc2numDict (self)
 
def getGarbage (self)
 
def getNumCycles (self)
 
def getReport (self)
 
def run (self)
 
- Public Member Functions inherited from Job
def __init__ (self, name)
 
def getFinishedEvent (self)
 
def getJobName (self)
 
def getPriority (self)
 
def isFinished (self)
 
def printingBegin (self)
 
def printingEnd (self)
 
def resume (self)
 
def setPriority (self, priority)
 
def suspend (self)
 
- Public Member Functions inherited from DirectObject
def __init__ (self)
 
def accept (self, event, method, extraArgs=[])
 
def acceptOnce (self, event, method, extraArgs=[])
 
def addTask (self, *args, **kwargs)
 
def detectLeaks (self)
 
def doMethodLater (self, *args, **kwargs)
 
def getAllAccepting (self)
 
def ignore (self, event)
 
def ignoreAll (self)
 
def isAccepting (self, event)
 
def isIgnoring (self, event)
 
def removeAllTasks (self)
 
def removeTask (self, taskOrName)
 

Public Attributes

 cycleIds
 
 cycles
 
 cyclesBySyntax
 
 garbage
 
 garbageInstanceIds
 
 numCycles
 
 numGarbage
 
 numGarbageInstances
 
 referentsByNumber
 
 referentsByReference
 
 referrersByNumber
 
 referrersByReference
 
 uniqueCycleSets
 

Static Public Attributes

 notify = directNotify.newCategory("GarbageReport")
 
- Static Public Attributes inherited from Job
 Continue = None
 
 Done = object()
 
 Priorities = ScratchPad(Min=1, Low=100, Normal=1000, High=10000)
 
 Sleep = object()
 
- Static Public Attributes inherited from DirectObject
def accept_once = acceptOnce
 
def add_task = addTask
 
def detect_leaks = detectLeaks
 
def do_method_later = doMethodLater
 
def get_all_accepting = getAllAccepting
 
def ignore_all = ignoreAll
 
def is_accepting = isAccepting
 
def is_ignoring = isIgnoring
 
def remove_all_tasks = removeAllTasks
 
def remove_task = removeTask
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __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 
)

Member Function Documentation

◆ destroy()

def destroy (   self)

Reimplemented from Job.

◆ finished()

def finished (   self)

Reimplemented from Job.

◆ getDesc2numDict()

def getDesc2numDict (   self)

◆ getGarbage()

def getGarbage (   self)

◆ getNumCycles()

def getNumCycles (   self)

◆ getReport()

def getReport (   self)

◆ run()

def run (   self)

Reimplemented from Job.

Member Data Documentation

◆ cycleIds

cycleIds

◆ cycles

cycles

◆ cyclesBySyntax

cyclesBySyntax

◆ garbage

garbage

◆ garbageInstanceIds

garbageInstanceIds

◆ notify

notify = directNotify.newCategory("GarbageReport")
static

◆ numCycles

numCycles

◆ numGarbage

numGarbage

◆ numGarbageInstances

numGarbageInstances

◆ referentsByNumber

referentsByNumber

◆ referentsByReference

referentsByReference

◆ referrersByNumber

referrersByNumber

◆ referrersByReference

referrersByReference

◆ uniqueCycleSets

uniqueCycleSets