    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005    import java.util.concurrent.Callable;
    006    import net.minecraft.client.Minecraft;
    007
    008    @SideOnly(Side.CLIENT)
    009    public class CallableClientMemoryStats implements Callable
    010    {
    011        final Minecraft mc;
    012
    013        public CallableClientMemoryStats(Minecraft par1)
    014        {
    015            this.mc = par1;
    016        }
    017
    018        public String func_82886_a()
    019        {
    020            int var1 = this.mc.theWorld.getWorldVec3Pool().func_82591_c();
    021            int var2 = 56 * var1;
    022            int var3 = var2 / 1024 / 1024;
    023            int var4 = this.mc.theWorld.getWorldVec3Pool().func_82590_d();
    024            int var5 = 56 * var4;
    025            int var6 = var5 / 1024 / 1024;
    026            return var1 + " (" + var2 + " bytes; " + var3 + " MB) allocated, " + var4 + " (" + var5 + " bytes; " + var6 + " MB) used";
    027        }
    028
    029        public Object call()
    030        {
    031            return this.func_82886_a();
    032        }
    033    }