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