FileDocCategorySizeDatePackage
ProfileData.javaAPI DocAndroid 1.5 API2157Wed May 06 22:41:10 BST 2009com.android.traceview

ProfileData

public class ProfileData extends Object

Fields Summary
protected MethodData
mElement
protected MethodData
mContext
mContext is either the parent or child of mElement
protected boolean
mElementIsParent
protected long
mElapsedInclusive
protected int
mNumCalls
Constructors Summary
public ProfileData()

    
public ProfileData(MethodData context, MethodData element, boolean elementIsParent)

        mContext = context;
        mElement = element;
        mElementIsParent = elementIsParent;
    
Methods Summary
public voidaddElapsedInclusive(long elapsedInclusive)

        mElapsedInclusive += elapsedInclusive;
        mNumCalls += 1;
    
public MethodDatagetContext()

        return mContext;
    
public longgetElapsedInclusive()

        return mElapsedInclusive;
    
public MethodDatagetMethodData()

        return mElement;
    
public java.lang.StringgetNumCalls()

        int totalCalls;
        if (mElementIsParent)
            totalCalls = mContext.getTotalCalls();
        else
            totalCalls = mElement.getTotalCalls();
        return String.format("%d/%d", mNumCalls, totalCalls);
    
public java.lang.StringgetProfileName()

        return mElement.getProfileName();
    
public booleanisParent()

        return mElementIsParent;
    
public voidsetElapsedInclusive(long elapsedInclusive)

        mElapsedInclusive = elapsedInclusive;
    
public voidsetNumCalls(int numCalls)

        mNumCalls = numCalls;