    001package net.minecraft.client;
    002
    003import cpw.mods.fml.relauncher.Side;
    004import cpw.mods.fml.relauncher.SideOnly;
    005import java.util.concurrent.Callable;
    006
    007@SideOnly(Side.CLIENT)
    008public 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 i = this.field_90048_a.theWorld.getWorldVec3Pool().getPoolSize();
    020        int j = 56 * i;
    021        int k = j / 1024 / 1024;
    022        int l = this.field_90048_a.theWorld.getWorldVec3Pool().func_82590_d();
    023        int i1 = 56 * l;
    024        int j1 = i1 / 1024 / 1024;
    025        return i + " (" + j + " bytes; " + k + " MB) allocated, " + l + " (" + i1 + " bytes; " + j1 + " MB) used";
    026    }
    027
    028    public Object call()
    029    {
    030        return this.func_90047_a();
    031    }
    032}