    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 CallableClientProfiler implements Callable
    009{
    010    final Minecraft theMinecraft;
    011
    012    public CallableClientProfiler(Minecraft par1Minecraft)
    013    {
    014        this.theMinecraft = par1Minecraft;
    015    }
    016
    017    public String callClientProfilerInfo()
    018    {
    019        return this.theMinecraft.mcProfiler.profilingEnabled ? this.theMinecraft.mcProfiler.getNameOfLastSection() : "N/A (disabled)";
    020    }
    021
    022    public Object call()
    023    {
    024        return this.callClientProfilerInfo();
    025    }
    026}