    001    package net.minecraft.src;
    002
    003    import java.util.concurrent.Callable;
    004    import net.minecraft.server.MinecraftServer;
    005
    006    public class CallableServerProfiler implements Callable
    007    {
    008        final MinecraftServer mcServer;
    009
    010        public CallableServerProfiler(MinecraftServer par1MinecraftServer)
    011        {
    012            this.mcServer = par1MinecraftServer;
    013        }
    014
    015        public String func_82554_a()
    016        {
    017            int var1 = this.mcServer.worldServers[0].getWorldVec3Pool().func_82591_c();
    018            int var2 = 56 * var1;
    019            int var3 = var2 / 1024 / 1024;
    020            int var4 = this.mcServer.worldServers[0].getWorldVec3Pool().func_82590_d();
    021            int var5 = 56 * var4;
    022            int var6 = var5 / 1024 / 1024;
    023            return var1 + " (" + var2 + " bytes; " + var3 + " MB) allocated, " + var4 + " (" + var5 + " bytes; " + var6 + " MB) used";
    024        }
    025
    026        public Object call()
    027        {
    028            return this.func_82554_a();
    029        }
    030    }