mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 09:34:21 +01:00
gives runtime access the ability to view timer logs and debug timers (#22451)
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user