lsst.daf.base  14.0-5-g744ff5f+3
Functions
lsst.daf.base.citizen.citizenContinued Namespace Reference

Functions

def setCallbacks (new=None, delete=None, both=False)
 
def mortal (memId0=0, nleakPrintMax=20, first=True, showTypes=None)
 Print leaked memory blocks. More...
 

Function Documentation

◆ mortal()

def lsst.daf.base.citizen.citizenContinued.mortal (   memId0 = 0,
  nleakPrintMax = 20,
  first = True,
  showTypes = None 
)

Print leaked memory blocks.

Parameters
memId0Only consider blocks allocated after this memId
nleakPrintMaxMaximum number of leaks to print; <= 0 means unlimited
firstPrint the first nleakPrintMax blocks; if False print the last blocks.
showTypesOnly print objects matching this regex (if starts with !, print objects that don't match)

If you want finer control than nleakPrintMax/first provide, use Citizen.census() to get the entire list

You can get the next memId to be allocated with mortal("set"), e.g. memId0 = mortal("set")

work work work

mortal(memId0)

Definition at line 60 of file citizenContinued.py.

◆ setCallbacks()

def lsst.daf.base.citizen.citizenContinued.setCallbacks (   new = None,
  delete = None,
  both = False 
)
Set the callback IDs for the Citizen; if both is true, set both new and delete to the same value

You probably want to chant the following to gdb:
   break defaultNewCallback
   break defaultDeleteCallback

You might want to put this in your .gdbinit file.

You can retrieve a citizen's signature from python with obj.repr()

Definition at line 34 of file citizenContinued.py.