    001package net.minecraft.server;
    002
    003import java.util.concurrent.Callable;
    004
    005public class CallableServerProfiler implements Callable
    006{
    007    /** Reference to the MinecraftServer object. */
    008    final MinecraftServer mcServer;
    009
    010    public CallableServerProfiler(MinecraftServer par1)
    011    {
    012        this.mcServer = par1;
    013    }
    014
    015    public String func_96557_a()
    016    {
    017        int i = this.mcServer.worldServers[0].getWorldVec3Pool().getPoolSize();
    018        int j = 56 * i;
    019        int k = j / 1024 / 1024;
    020        int l = this.mcServer.worldServers[0].getWorldVec3Pool().func_82590_d();
    021        int i1 = 56 * l;
    022        int j1 = i1 / 1024 / 1024;
    023        return i + " (" + j + " bytes; " + k + " MB) allocated, " + l + " (" + i1 + " bytes; " + j1 + " MB) used";
    024    }
    025
    026    public Object call()
    027    {
    028        return this.func_96557_a();
    029    }
    030}