Add logging to failed GC's that result in a del() call

You can view these logs in-game using a debug verb. You have to use the debug-verbs command to see it.

Removed the dellogging compile option. If this is a problem, speak up, but for most users, this new functionality is more useful.
This commit is contained in:
MrPerson
2014-06-13 11:46:17 -07:00
parent 4a26037c16
commit 44638fd05c
5 changed files with 17 additions and 21 deletions
+12
View File
@@ -1137,3 +1137,15 @@ var/global/list/g_fancy_list_of_safe_types = null
usr << list2text(clients,",")
if("Joined Clients")
usr << list2text(joined_player_list,",")
/client/proc/cmd_display_del_log()
set category = "Debug"
set name = "Display del() Log"
set desc = "Displays a list of things that have failed to GC this round"
var/dat = "<B>List of things that failed to GC this round</B><BR><BR>"
for(var/path in garbage.logging)
dat += "[path] - [garbage.logging[path]] times<BR>"
usr << browse(dat, "window=dellog")