code/controllers/subsystem/garbage.dm
Debugging GC issuesIn order to debug First is a verb called "Find References", which lists every refererence to an object in the world. This allows you to track down any indirect or obfuscated references that you might have missed. Complementing this is another verb, "qdel() then Find References".
This does exactly what you'd expect; it calls If you have a datum or something you are not destroying directly (say via the singulo),
the next tool is Finally is a verb, "Show qdel() Log", which shows the deletion log that the garbage subsystem keeps. This is helpful if you are having race conditions or need to review the order of deletions. Note that for any of these tools to work | |
/datum/qdel_item | Qdel Item: Holds statistics on each type that passes thru qdel |
---|---|
/proc/qdel | Should be treated as a replacement for the 'del' keyword. |