    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 theMinecraft;
    011
    012    public CallableClientMemoryStats(Minecraft par1)
    013    {
    014        this.theMinecraft = par1;
    015    }
    016
    017    public String callClientMemoryStats()
    018    {
    019        int i = this.theMinecraft.theWorld.getWorldVec3Pool().getPoolSize();
    020        int j = 56 * i;
    021        int k = j / 1024 / 1024;
    022        int l = this.theMinecraft.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.callClientMemoryStats();
    031    }
    032}