LSSTApplications
18.1.0
LSSTDataManagementBasePackage
|
Functions | |
def | setCallbacks (new=None, delete=None, both=False) |
def | mortal (memId0=0, nleakPrintMax=20, first=True, showTypes=None) |
Print leaked memory blocks. More... | |
def lsst.daf.base.citizen.citizenContinued.mortal | ( | memId0 = 0 , |
|
nleakPrintMax = 20 , |
|||
first = True , |
|||
showTypes = None |
|||
) |
Print leaked memory blocks.
memId0 | Only consider blocks allocated after this memId |
nleakPrintMax | Maximum number of leaks to print; <= 0 means unlimited |
first | Print the first nleakPrintMax blocks; if False print the last blocks. |
showTypes | Only 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")
mortal(memId0)
Definition at line 59 of file citizenContinued.py.
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 32 of file citizenContinued.py.