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