/art/tools/ahat/src/test/com/android/ahat/ |
D | InstanceTest.java | 21 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 …]
|
D | ObjectHandlerTest.java | 19 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()
|
D | SiteTest.java | 19 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()
|
D | ObjectsHandlerTest.java | 19 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()
|
D | DiffTest.java | 20 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()
|
D | RiTest.java | 19 import com.android.ahat.heapdump.AhatInstance; 37 AhatInstance ref = dump.getDumpedAhatInstance("aWeakRefToFinalizable"); in finalizable() 40 AhatInstance referent = ref.getReferent(); in finalizable()
|
D | TestDump.java | 20 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()
|
D | NativeAllocationTest.java | 19 import com.android.ahat.heapdump.AhatInstance; 33 AhatInstance referent = dump.getDumpedAhatInstance("anObject"); in nativeAllocation()
|
/art/tools/ahat/src/main/com/android/ahat/heapdump/ |
D | AhatSnapshot.java | 34 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 …]
|
D | AhatInstance.java | 35 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() 275 public List<AhatInstance> getDominated() { in getDominated() 399 public AhatInstance getReferent() { in getReferent() [all …]
|
D | Diff.java | 105 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 …]
|
D | DominatorReferenceIterator.java | 26 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()
|
D | Reference.java | 26 public final AhatInstance src; 28 public final AhatInstance ref; 31 public Reference(AhatInstance src, String field, AhatInstance ref, Reachability reachability) { in Reference()
|
D | Sort.java | 51 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()
|
D | SuperRoot.java | 23 class SuperRoot extends AhatInstance { 24 private List<AhatInstance> mRoots = new ArrayList<AhatInstance>(); 31 void addRoot(AhatInstance root) { in addRoot()
|
D | AhatClassObj.java | 30 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()
|
D | Instances.java | 27 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()
|
D | PathElement.java | 37 public final AhatInstance instance; 64 public PathElement(AhatInstance instance, String field) { in PathElement()
|
D | Site.java | 63 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()
|
D | AhatClassInstance.java | 32 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()
|
D | AhatArrayInstance.java | 30 public class AhatArrayInstance extends AhatInstance { 174 void initialize(final AhatInstance[] insts) { in initialize() 330 @Override public AhatInstance getAssociatedBitmapInstance() { in getAssociatedBitmapInstance() 332 List<AhatInstance> refs = getReverseReferences(); in getAssociatedBitmapInstance() 334 AhatInstance ref = refs.get(0); in getAssociatedBitmapInstance() 343 List<AhatInstance> refs = getHardReverseReferences(); in getAssociatedClassForOverhead()
|
/art/tools/ahat/src/main/com/android/ahat/ |
D | DominatedList.java | 20 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()
|
D | ObjectsHandler.java | 20 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()
|
D | ObjectHandler.java | 23 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 …]
|
D | Summarizer.java | 20 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()
|