gives runtime access the ability to view timer logs and debug timers (#22451)

This commit is contained in:
GDN
2023-10-09 14:28:31 -05:00
committed by GitHub
parent edc3005a17
commit 6ac126da0b
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -582,7 +582,7 @@ GLOBAL_LIST_EMPTY(timers_by_type)
set category = "Debug"
set desc = "Shows the log of what types created timers this round"
if(!check_rights(R_DEBUG))
if(!check_rights(R_DEBUG | R_VIEWRUNTIMES))
return
var/list/sorted = sortTim(GLOB.timers_by_type, GLOBAL_PROC_REF(cmp_numeric_dsc), TRUE)
@@ -598,6 +598,9 @@ GLOBAL_LIST_EMPTY(timers_by_type)
set category = "Debug"
set desc = "Shows currently active timers, grouped by callback"
if(!check_rights(R_DEBUG | R_VIEWRUNTIMES))
return
var/list/timers = list()
for(var/id in SStimer.timer_id_dict)
var/datum/timedevent/T = SStimer.timer_id_dict[id]
+3 -1
View File
@@ -250,7 +250,9 @@ GLOBAL_LIST_INIT(view_runtimes_verbs, list(
/client/proc/show_gc_queues,
/client/proc/toggle_mctabs,
/client/proc/debug_global_variables,
/client/proc/visualise_active_turfs
/client/proc/visualise_active_turfs,
/client/proc/debug_timers,
/client/proc/timer_log
))
/client/proc/on_holder_add()