Debug event

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-09 14:44:25 +01:00
parent ab5481a392
commit 902cee1107

View File

@ -147,6 +147,7 @@ class PocketMinecraftServer{
$info["actions"] = $this->query("SELECT count(ID) as count FROM actions;", true);
$info["actions"] = $info["actions"]["count"];
$info["garbage"] = gc_collect_cycles();
$this->handle("server.debug", $info);
if($console === true){
console("[DEBUG] TPS: ".$info["tps"].", Memory usage: ".$info["memory_usage"]." (Peak ".$info["memory_peak_usage"]."), Entities: ".$info["entities"].", Events: ".$info["events"].", Actions: ".$info["actions"].", Garbage: ".$info["garbage"], true, true, 2);
}