Home
last modified time | relevance | path

Searched refs:Reachability (Results 1 – 21 of 21) sorted by relevance

/art/tools/ahat/src/test/com/android/ahat/
DRiTest.java20 import com.android.ahat.heapdump.Reachability;
30 TestDump.getTestDump("ri-test-dump.hprof", null, null, Reachability.STRONG); in loadRi()
36 TestDump dump = TestDump.getTestDump("ri-test-dump.hprof", null, null, Reachability.STRONG); in finalizable()
42 assertEquals(Reachability.FINALIZER, referent.getReachability()); in finalizable()
DOverviewHandlerTest.java20 import com.android.ahat.heapdump.Reachability;
33 Reachability.SOFT); in noCrash()
DInstanceTest.java24 import com.android.ahat.heapdump.Reachability;
220 assertEquals(Reachability.SOFT, referent.getReachability()); in unreachableReferent()
235 assertEquals(Reachability.STRONG, strong1.getReachability()); in reachability()
236 assertEquals(Reachability.STRONG, soft1.getReachability()); in reachability()
237 assertEquals(Reachability.SOFT, strong2.getReachability()); in reachability()
238 assertEquals(Reachability.SOFT, weak1.getReachability()); in reachability()
239 assertEquals(Reachability.WEAK, soft2.getReachability()); in reachability()
240 assertEquals(Reachability.WEAK, phantom1.getReachability()); in reachability()
241 assertEquals(Reachability.PHANTOM, obj.getReachability()); in reachability()
343 Reachability.STRONG); in retainedSizeByRetained()
[all …]
DTestDump.java26 import com.android.ahat.heapdump.Reachability;
58 private Reachability mRetained;
102 Reachability retained) { in TestDump()
250 Reachability.STRONG); in getTestDump()
267 Reachability retained) in getTestDump()
DSiteTest.java21 import com.android.ahat.heapdump.Reachability;
107 Reachability.STRONG); in objectsInfos()
123 Reachability.SOFT); in objectsInfos()
DDiffTest.java21 import com.android.ahat.heapdump.Reachability;
83 TestDump dump = TestDump.getTestDump("O.hprof", "L.hprof", null, Reachability.STRONG); in diffClassRemoved()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DReachability.java25 public enum Reachability { enum
62 Reachability(String name) { in Reachability() method in Reachability
78 public boolean notWeakerThan(Reachability other) { in notWeakerThan()
DAhatInstance.java51 private Reachability mReachability = Reachability.UNREACHABLE;
162 public Reachability getReachability() { in getReachability()
174 return mReachability == Reachability.STRONG; in isStronglyReachable()
206 return mReachability == Reachability.UNREACHABLE; in isUnreachable()
429 if (ref.getReachability() == Reachability.STRONG && ref.getReferent() != this) { in getHardReverseReferences()
447 if (ref.getReachability() != Reachability.STRONG || ref.getReferent() == this) { in getSoftReverseReferences()
720 EnumMap<Reachability, Queue<Reference>> queues = new EnumMap<>(Reachability.class); in computeReachability()
721 for (Reachability reachability : Reachability.values()) { in computeReachability()
726 queues.get(Reachability.STRONG).add(ref); in computeReachability()
729 for (Reachability reachability : Reachability.values()) { in computeReachability()
[all …]
DAhatClassInstance.java406 private Reachability getJavaLangRefType() { in getJavaLangRefType()
410 case "java.lang.ref.PhantomReference": return Reachability.PHANTOM; in getJavaLangRefType()
411 case "java.lang.ref.WeakReference": return Reachability.WEAK; in getJavaLangRefType()
412 case "java.lang.ref.FinalizerReference": return Reachability.FINALIZER; in getJavaLangRefType()
413 case "java.lang.ref.Finalizer": return Reachability.FINALIZER; in getJavaLangRefType()
414 case "java.lang.ref.SoftReference": return Reachability.SOFT; in getJavaLangRefType()
418 return Reachability.STRONG; in getJavaLangRefType()
432 private final Reachability mJavaLangRefType = getJavaLangRefType();
439 Reachability reachability = Reachability.STRONG; in hasNext()
440 if (mJavaLangRefType != Reachability.STRONG && "referent".equals(field.name)) { in hasNext()
DReference.java29 public final Reachability reachability;
31 public Reference(AhatInstance src, String field, AhatInstance ref, Reachability reachability) { in Reference()
DDominatorReferenceIterator.java28 private final Reachability mRetained;
32 public DominatorReferenceIterator(Reachability retained, Iterable<Reference> iter) { in DominatorReferenceIterator()
DSuperRoot.java56 return new Reference(SuperRoot.this, field, mRoots.get(index), Reachability.STRONG); in getReferences()
DAhatSnapshot.java45 Reachability retained) { in AhatSnapshot()
63 if (retained == Reachability.UNREACHABLE && inst.isUnreachable()) { in AhatSnapshot()
DAhatClassObj.java137 Reachability.STRONG); in getReferences()
DAhatArrayInstance.java248 Reachability.STRONG); in getReferences()
DParser.java60 private Reachability retained = Reachability.SOFT;
115 public Parser retained(Reachability retained) { in retained()
DSite.java208 long prepareForUse(long id, int numHeaps, Reachability retained) { in prepareForUse()
/art/tools/ahat/src/main/com/android/ahat/
DMain.java23 import com.android.ahat.heapdump.Reachability;
67 ProguardMap map, Progress progress, Reachability retained) { in loadHeapDump()
103 Reachability retained = Reachability.SOFT; in main()
135 case "strong": retained = Reachability.STRONG; break; in main()
136 case "soft": retained = Reachability.SOFT; break; in main()
137 case "finalizer": retained = Reachability.FINALIZER; break; in main()
138 case "weak": retained = Reachability.WEAK; break; in main()
139 case "phantom": retained = Reachability.PHANTOM; break; in main()
140 case "unreachable": retained = Reachability.UNREACHABLE; break; in main()
DOverviewHandler.java21 import com.android.ahat.heapdump.Reachability;
31 private Reachability mRetained;
33 public OverviewHandler(AhatSnapshot snapshot, File hprof, File basehprof, Reachability retained) { in OverviewHandler()
DSummarizer.java21 import com.android.ahat.heapdump.Reachability;
56 Reachability reachability = inst.getReachability(); in summarize()
57 if (reachability != Reachability.STRONG) { in summarize()
/art/tools/ahat/etc/
Dahat_api.txt93 method public com.android.ahat.heapdump.Reachability getReachability();
186 method public com.android.ahat.heapdump.Parser retained(com.android.ahat.heapdump.Reachability);
198 public enum Reachability {
199 method public boolean notWeakerThan(com.android.ahat.heapdump.Reachability);
201 enum_constant public static final com.android.ahat.heapdump.Reachability FINALIZER;
202 enum_constant public static final com.android.ahat.heapdump.Reachability PHANTOM;
203 enum_constant public static final com.android.ahat.heapdump.Reachability SOFT;
204 enum_constant public static final com.android.ahat.heapdump.Reachability STRONG;
205 enum_constant public static final com.android.ahat.heapdump.Reachability UNREACHABLE;
206 enum_constant public static final com.android.ahat.heapdump.Reachability WEAK;