From 15c63e6bbf327286a637cd033f3a113be19ad439 Mon Sep 17 00:00:00 2001 From: "elly1989@rocketmail.com" Date: Tue, 23 Oct 2012 04:58:24 +0000 Subject: [PATCH] Added an instance counter to the status panel for admins. It just shows world.contents.len It might be helpful in identifying stuff which isn't getting garbage collected properly. u TODO: move those server stats onto another tab because they are kinda annoying if you actually want to play as an alium or something. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4940 316c924e-a436-60f5-8080-3fe189b3f50e --- code/modules/mob/mob.dm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 16daad28475..697a8782778 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -649,18 +649,19 @@ note dizziness decrements automatically in the mob's Life() proc. if(statpanel("Status")) //not looking at that panel if(client && client.holder) - stat(null,"Location: \t ([x], [y], [z])") - stat(null,"CPU: \t [world.cpu]") + stat(null,"Location:\t([x], [y], [z])") + stat(null,"CPU:\t[world.cpu]") + stat(null,"Instances:\t[world.contents.len]") if(master_controller) stat(null,"MasterController-[last_tick_duration] ([master_controller.processing?"On":"Off"]-[controller_iteration])") - stat(null,"Air-[master_controller.air_cost]\t Sun-[master_controller.sun_cost]") - stat(null,"Mob-[master_controller.mobs_cost]\t #[mob_list.len]") - stat(null,"Dis-[master_controller.diseases_cost]\t #[active_diseases.len]") - stat(null,"Mch-[master_controller.machines_cost]\t #[machines.len]") - stat(null,"Obj-[master_controller.objects_cost]\t #[processing_objects.len]") - stat(null,"Net-[master_controller.networks_cost]\t Pnet-[master_controller.powernets_cost]") - stat(null,"Tick-[master_controller.ticker_cost]\t ALL-[master_controller.total_cost]") + stat(null,"Air-[master_controller.air_cost]\tSun-[master_controller.sun_cost]") + stat(null,"Mob-[master_controller.mobs_cost]\t#[mob_list.len]") + stat(null,"Dis-[master_controller.diseases_cost]\t#[active_diseases.len]") + stat(null,"Mch-[master_controller.machines_cost]\t#[machines.len]") + stat(null,"Obj-[master_controller.objects_cost]\t#[processing_objects.len]") + stat(null,"Net-[master_controller.networks_cost]\tPnet-[master_controller.powernets_cost]") + stat(null,"Tick-[master_controller.ticker_cost]\tALL-[master_controller.total_cost]") else stat(null,"MasterController-ERROR")