Home
last modified time | relevance | path

Searched refs:AhatInstance (Results 1 – 25 of 33) sorted by relevance

12

/art/tools/ahat/src/test/com/android/ahat/
DInstanceTest.java21 import com.android.ahat.heapdump.AhatInstance;
41 AhatInstance str = dump.getDumpedAhatInstance("basicString"); in asStringBasic()
48 AhatInstance str = dump.getDumpedAhatInstance("nonAscii"); in asStringNonAscii()
55 AhatInstance str = dump.getDumpedAhatInstance("embeddedZero"); in asStringEmbeddedZero()
62 AhatInstance str = dump.getDumpedAhatInstance("charArray"); in asStringCharArray()
69 AhatInstance str = dump.getDumpedAhatInstance("basicString"); in asStringTruncated()
76 AhatInstance str = dump.getDumpedAhatInstance("nonAscii"); in asStringTruncatedNonAscii()
83 AhatInstance str = dump.getDumpedAhatInstance("embeddedZero"); in asStringTruncatedEmbeddedZero()
90 AhatInstance str = dump.getDumpedAhatInstance("charArray"); in asStringCharArrayTruncated()
97 AhatInstance str = dump.getDumpedAhatInstance("basicString"); in asStringExactMax()
[all …]
DObjectHandlerTest.java19 import com.android.ahat.heapdump.AhatInstance;
31 AhatInstance object = dump.getDumpedAhatInstance("aPhantomReference"); in noCrashClassInstance()
45 AhatInstance object = dump.findClass("Main"); in noCrashClassObj()
58 AhatInstance object = dump.findClass("java.lang.String"); in noCrashSystemClassObj()
68 AhatInstance object = dump.getDumpedAhatInstance("gcPathArray"); in noCrashArrayInstance()
DSiteTest.java19 import com.android.ahat.heapdump.AhatInstance;
36 AhatInstance oKnownSite = dump.getDumpedAhatInstance("objectAllocatedAtKnownSite"); in objectsAllocatedAtKnownSites()
43 AhatInstance oKnownSubSite = dump.getDumpedAhatInstance("objectAllocatedAtKnownSubSite"); in objectsAllocatedAtKnownSites()
65 AhatInstance oObfSuperSite = dump.getDumpedAhatInstance("objectAllocatedAtObfSuperSite"); in objectsAllocatedAtKnownSites()
72 AhatInstance oUnObfSuperSite = dump.getDumpedAhatInstance("objectAllocatedAtUnObfSuperSite"); in objectsAllocatedAtKnownSites()
79 AhatInstance oOverriddenSite = dump.getDumpedAhatInstance("objectAllocatedAtOverriddenSite"); in objectsAllocatedAtKnownSites()
109 AhatInstance refStrong = dumpStrong.getDumpedAhatInstance("reachabilityReferenceChain"); in objectsInfos()
124 AhatInstance refSoft = dumpSoft.getDumpedAhatInstance("reachabilityReferenceChain"); in objectsInfos()
DObjectsHandlerTest.java19 import com.android.ahat.heapdump.AhatInstance;
38 List<AhatInstance> dumped = ObjectsHandler.getObjects( in getObjects()
44 List<AhatInstance> direct = ObjectsHandler.getObjects( in getObjects()
49 List<AhatInstance> subclass = ObjectsHandler.getObjects( in getObjects()
DRiTest.java19 import com.android.ahat.heapdump.AhatInstance;
37 AhatInstance ref = dump.getDumpedAhatInstance("aWeakRefToFinalizable"); in finalizable()
40 AhatInstance referent = ref.getReferent(); in finalizable()
DDiffTest.java20 import com.android.ahat.heapdump.AhatInstance;
47 AhatInstance a = dump.getDumpedAhatInstance("unchangedObject"); in diffUnchanged()
50 AhatInstance b = dump.getBaselineDumpedAhatInstance("unchangedObject"); in diffUnchanged()
65 AhatInstance a = dump.getDumpedAhatInstance("addedObject"); in diffAdded()
76 AhatInstance b = dump.getBaselineDumpedAhatInstance("removedObject"); in diffRemoved()
DTestDump.java20 import com.android.ahat.heapdump.AhatInstance;
185 AhatInstance stuff = null; in getDumpedValue()
200 Collection<AhatInstance> classes = new ArrayList<AhatInstance>(); in findClass()
202 for (AhatInstance inst : classes) { in findClass()
225 public AhatInstance getDumpedAhatInstance(String name) { in getDumpedAhatInstance()
234 public AhatInstance getBaselineDumpedAhatInstance(String name) { in getBaselineDumpedAhatInstance()
DNativeAllocationTest.java19 import com.android.ahat.heapdump.AhatInstance;
33 AhatInstance referent = dump.getDumpedAhatInstance("anObject"); in nativeAllocation()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatSnapshot.java34 private final Instances<AhatInstance> mInstances;
41 Instances<AhatInstance> instances, in AhatSnapshot()
51 AhatInstance.computeReachability(mSuperRoot, progress, mInstances.size()); in AhatSnapshot()
53 for (AhatInstance inst : mInstances) { in AhatSnapshot()
58 AhatInstance.RegisteredNativeAllocation nra = inst.asRegisteredNativeAllocation(); in AhatSnapshot()
68 Dominators.Graph<AhatInstance> graph = new Dominators.Graph<AhatInstance>() { in AhatSnapshot()
70 public void setDominatorsComputationState(AhatInstance node, Object state) { in AhatSnapshot()
75 public Object getDominatorsComputationState(AhatInstance node) { in AhatSnapshot()
80 public Iterable<AhatInstance> getReferencesForDominators(AhatInstance node) { in AhatSnapshot()
85 public void setDominator(AhatInstance node, AhatInstance dominator) { in AhatSnapshot()
[all …]
DAhatInstance.java35 public abstract class AhatInstance implements Diffable<AhatInstance> { class
52 private AhatInstance mNextInstanceToGcRoot;
54 private ArrayList<AhatInstance> mReverseReferences;
59 private AhatInstance mImmediateDominator;
60 private List<AhatInstance> mDominated = new ArrayList<AhatInstance>();
64 private AhatInstance mBaseline;
72 AhatInstance(long id) { in AhatInstance() method in AhatInstance
266 public AhatInstance getImmediateDominator() { in getImmediateDominator()
278 public List<AhatInstance> getDominated() { in getDominated()
402 public AhatInstance getReferent() { in getReferent()
[all …]
DDominatorReferenceIterator.java26 class DominatorReferenceIterator implements Iterator<AhatInstance>,
27 Iterable<AhatInstance> {
30 private AhatInstance mNext;
50 public AhatInstance next() { in next()
52 AhatInstance next = mNext; in next()
60 public Iterator<AhatInstance> iterator() { in iterator()
DDiff.java105 private Key(AhatInstance inst) { in Key()
118 public static Key keyFor(AhatInstance inst) { in keyFor()
142 public final List<AhatInstance> a;
143 public final List<AhatInstance> b;
146 this.a = new ArrayList<AhatInstance>(); in InstanceListPair()
147 this.b = new ArrayList<AhatInstance>(); in InstanceListPair()
150 public InstanceListPair(List<AhatInstance> a, List<AhatInstance> b) { in InstanceListPair()
162 private static AhatInstance createPlaceHolders(AhatInstance inst, in createPlaceHolders()
163 List<AhatInstance> placeholders) { in createPlaceHolders()
166 AhatInstance result = inst.newPlaceHolderInstance(); in createPlaceHolders()
[all …]
DReference.java26 public final AhatInstance src;
28 public final AhatInstance ref;
31 public Reference(AhatInstance src, String field, AhatInstance ref, Reachability reachability) { in Reference()
DSort.java51 public static final Comparator<AhatInstance> INSTANCE_BY_TOTAL_RETAINED_SIZE
52 = new Comparator<AhatInstance>() {
54 public int compare(AhatInstance a, AhatInstance b) {
65 private static class InstanceByHeapRetainedSize implements Comparator<AhatInstance> {
73 public int compare(AhatInstance a, AhatInstance b) { in compare()
137 public static Comparator<AhatInstance> defaultInstanceCompare(AhatSnapshot snapshot) { in defaultInstanceCompare()
138 List<Comparator<AhatInstance>> comparators = new ArrayList<Comparator<AhatInstance>>(); in defaultInstanceCompare()
148 return new WithPriority<AhatInstance>(comparators); in defaultInstanceCompare()
DSuperRoot.java23 class SuperRoot extends AhatInstance {
24 private List<AhatInstance> mRoots = new ArrayList<AhatInstance>();
31 void addRoot(AhatInstance root) { in addRoot()
DAhatClassObj.java30 public class AhatClassObj extends AhatInstance {
33 private AhatInstance mClassLoader;
54 void initialize(AhatInstance classLoader, FieldValue[] staticFields) { in initialize()
88 public AhatInstance getClassLoader() { in getClassLoader()
157 @Override AhatInstance newPlaceHolderInstance() { in newPlaceHolderInstance()
DInstances.java27 class Instances<T extends AhatInstance> implements Iterable<T> {
40 instances.sort(new Comparator<AhatInstance>() { in Instances()
42 public int compare(AhatInstance a, AhatInstance b) { in Instances()
DPathElement.java37 public final AhatInstance instance;
64 public PathElement(AhatInstance instance, String field) { in PathElement()
DSite.java63 private List<AhatInstance> mObjects;
146 mObjects = new ArrayList<AhatInstance>(); in Site()
190 void addInstance(AhatInstance inst) { in addInstance()
218 for (AhatInstance inst : mObjects) { in prepareForUse()
269 public void getObjects(String heapName, String className, Collection<AhatInstance> objects) { in getObjects()
270 Predicate<AhatInstance> predicate = x -> { in getObjects()
284 public void getObjects(Predicate<AhatInstance> predicate, Consumer<AhatInstance> consumer) { in getObjects()
285 for (AhatInstance inst : mObjects) { in getObjects()
DAhatClassInstance.java32 public class AhatClassInstance extends AhatInstance {
61 @Override public AhatInstance getRefField(String fieldName) { in getRefField()
120 AhatInstance inst = value.asAhatInstance(); in asString()
131 @Override public AhatInstance getReferent() { in getReferent()
140 AhatInstance location = getRefField("location"); in getDexCacheLocation()
150 for (AhatInstance inst : getReverseReferences()) { in getBinderProxyInterfaceName()
194 @Override public AhatInstance getAssociatedBitmapInstance() { in getAssociatedBitmapInstance()
235 AhatInstance field = getRefField(fieldName); in getByteArrayField()
443 AhatInstance ref = field.value.asAhatInstance(); in hasNext()
/art/tools/ahat/src/main/com/android/ahat/
DDominatedList.java20 import com.android.ahat.heapdump.AhatInstance;
44 Doc doc, Query query, String id, Collection<AhatInstance> instances) { in render()
45 List<AhatInstance> insts = new ArrayList<AhatInstance>(instances); in render()
50 private static class TableConfig implements HeapTable.TableConfig<AhatInstance> {
57 public long getSize(AhatInstance element, AhatHeap heap) { in getSize()
62 public List<HeapTable.ValueConfig<AhatInstance>> getValueConfigs() { in getValueConfigs()
63 HeapTable.ValueConfig<AhatInstance> value = new HeapTable.ValueConfig<AhatInstance>() { in getValueConfigs()
68 public DocString render(AhatInstance element) { in getValueConfigs()
DObjectsHandler.java20 import com.android.ahat.heapdump.AhatInstance;
50 public static List<AhatInstance> getObjects( in getObjects()
52 Predicate<AhatInstance> predicate = (x) -> { in getObjects()
57 List<AhatInstance> insts = new ArrayList<AhatInstance>(); in getObjects()
70 List<AhatInstance> insts = getObjects(site, className, subclass, heapName); in handle()
125 SubsetSelector<AhatInstance> selector = new SubsetSelector(query, OBJECTS_ID, insts); in handle()
126 for (AhatInstance inst : selector.selected()) { in handle()
127 AhatInstance base = inst.getBaseline(); in handle()
DObjectHandler.java23 import com.android.ahat.heapdump.AhatInstance;
58 AhatInstance inst = mSnapshot.findInstance(id); in handle()
63 AhatInstance base = inst.getBaseline(); in handle()
116 AhatInstance base = inst.getBaseline(); in printClassInstanceFields()
124 AhatInstance base = array.getBaseline(); in printArrayElements()
217 AhatInstance base = clsobj.getBaseline(); in printClassInfo()
223 private static void printReferences(Doc doc, Query query, AhatInstance inst) { in printReferences()
229 List<AhatInstance> references = inst.getReverseReferences(); in printReferences()
230 SubsetSelector<AhatInstance> selector = new SubsetSelector(query, REFS_ID, references); in printReferences()
231 for (AhatInstance ref : selector.selected()) { in printReferences()
[all …]
DSummarizer.java20 import com.android.ahat.heapdump.AhatInstance;
38 public static DocString summarize(AhatInstance inst) { in summarize()
83 AhatInstance referent = inst.getReferent(); in summarize()
103 AhatInstance bitmap = inst.getAssociatedBitmapInstance(); in summarize()
/art/tools/ahat/etc/
Dahat_api.txt41 public class AhatArrayInstance extends com.android.ahat.heapdump.AhatInstance {
48 public class AhatClassInstance extends com.android.ahat.heapdump.AhatInstance {
53 public class AhatClassObj extends com.android.ahat.heapdump.AhatInstance {
54 method public com.android.ahat.heapdump.AhatInstance getClassLoader();
70 …public abstract class AhatInstance implements com.android.ahat.heapdump.Diffable<com.android.ahat.…
77 method public com.android.ahat.heapdump.AhatInstance getAssociatedBitmapInstance();
79 method public com.android.ahat.heapdump.AhatInstance getBaseline();
86 method public List<AhatInstance> getDominated();
88 method @Deprecated public List<AhatInstance> getHardReverseReferences();
91 method public com.android.ahat.heapdump.AhatInstance getImmediateDominator();
[all …]

12