mirror of
https://github.com/goonstation/goonstation-2016.git
synced 2026-05-18 14:39:01 +01:00
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
////////////////////////////////////////////////////////////////////////////////////
|
|
// client procs
|
|
//
|
|
// these verbs allow admins to monitor and adjust the master controller
|
|
// and process loops live during the round
|
|
|
|
|
|
/client/proc/main_loop_context()
|
|
set category = "Debug"
|
|
set name = "Main Loop Context"
|
|
set desc = "Displays the current main loop context information (lastproc: lasttask \[world.timeofday\])"
|
|
if(src.holder)
|
|
if(!src.mob)
|
|
return
|
|
processSchedulerView.getContext()
|
|
|
|
// this is a godawful hack for now, pending cleanup as part of a better main loop control panel. but hey it works
|
|
/client/proc/main_loop_tick_detail()
|
|
set category = "Debug"
|
|
set name = "Main Loop Tick Detail"
|
|
set desc = "Displays detailed tick information for the main loops that support it."
|
|
if(src.holder)
|
|
if(!src.mob)
|
|
return
|
|
if(src.holder.rank in list("Coder", "Host"))
|
|
boutput(src, "Dumping detailed tick counters...")
|
|
for (var/datum/controller/process/child in processScheduler.processes)
|
|
child.tickDetail()
|
|
else
|
|
alert("Fuck off, no crashing dis server")
|
|
return
|