FileDocCategorySizeDatePackage
Instance.javaAPI DocAndroid 5.1 API3271Thu Mar 12 22:18:30 GMT 2015com.android.hit

Instance

public abstract class Instance extends Object

Fields Summary
long
mId
long
mClassId
StackTrace
mStack
Heap
mHeap
int
mSize
private ArrayList
mParents
Constructors Summary
Methods Summary
public voidaddParent(com.android.hit.Instance parent)

        if (mParents == null) {
            mParents = new ArrayList<Instance>();
        }

        mParents.add(parent);
    
public java.lang.StringdescribeReferenceTo(long id)

        return "No reference to 0x" + Long.toHexString(id);
    
public final intgetCompositeSize()

        HashSet<Instance> set = new HashSet<Instance>();

        visit(set, null);

        int size = 0;

        for (Instance instance: set) {
            size += instance.getSize();
        }

        return size;
    
public java.util.ArrayListgetParents()

        if (mParents == null) {
            mParents = new ArrayList<Instance>();
        }

        return mParents;
    
public intgetSize()

        return mSize;
    
public abstract java.lang.StringgetTypeName()

public abstract voidresolveReferences(State state)

public voidsetHeap(Heap heap)

        mHeap = heap;
    
public voidsetSize(int size)

        mSize = size;
    
public abstract voidvisit(java.util.Set resultSet, com.android.hit.Instance$Filter filter)