Home
last modified time | relevance | path

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

12

/aosp12/art/tools/ahat/src/test/com/android/ahat/
H A DInstanceTest.java21 import com.android.ahat.heapdump.AhatInstance;
48 AhatInstance str = dump.getDumpedAhatInstance("nonAscii"); in asStringNonAscii()
218 AhatInstance referent = ref.getReferent(); in unreachableReferent()
251 AhatInstance base = value.asAhatInstance(); in gcRootPath()
252 AhatInstance left = base.getRefField("left"); in gcRootPath()
253 AhatInstance right = base.getRefField("right"); in gcRootPath()
254 AhatInstance target = left.getRefField("right"); in gcRootPath()
374 AhatInstance obj = dump.findClass("Main");
389 AhatInstance obj = dump.findClass("Main");
418 AhatInstance main = dump.findClass("Main");
[all …]
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A DRiTest.java19 import com.android.ahat.heapdump.AhatInstance;
37 AhatInstance ref = dump.getDumpedAhatInstance("aWeakRefToFinalizable"); in finalizable()
40 AhatInstance referent = ref.getReferent(); in finalizable()
/aosp12/art/tools/ahat/src/main/com/android/ahat/heapdump/
H A DAhatInstance.java35 public abstract class AhatInstance implements Diffable<AhatInstance> { class
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
402 public AhatInstance getReferent() { in getReferent()
427 List<AhatInstance> refs = new ArrayList<AhatInstance>(); in getHardReverseReferences()
445 List<AhatInstance> refs = new ArrayList<AhatInstance>(); in getSoftReverseReferences()
599 public AhatInstance referent;
631 AhatInstance dom = this; in getPathFromGcRoot()
[all …]
H A DAhatSnapshot.java34 private final Instances<AhatInstance> mInstances;
41 Instances<AhatInstance> instances, in AhatSnapshot()
53 for (AhatInstance inst : mInstances) { in AhatSnapshot()
68 Dominators.Graph<AhatInstance> graph = new Dominators.Graph<AhatInstance>() { 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()
91 AhatInstance.computeRetainedSize(mSuperRoot, mHeaps.size()); in AhatSnapshot()
108 public AhatInstance findInstance(long id) { in findInstance()
121 AhatInstance inst = findInstance(id); in findClassObj()
[all …]
H A DDiff.java105 private Key(AhatInstance inst) { in Key()
142 public final List<AhatInstance> a;
143 public final List<AhatInstance> b;
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()
168 Deque<AhatInstance> deque = new ArrayDeque<AhatInstance>(); in createPlaceHolders()
188 private static void instances(List<AhatInstance> a, List<AhatInstance> b, in instances()
199 for (AhatInstance inst : p.a) { in instances()
208 for (AhatInstance inst : p.b) { in instances()
[all …]
H A 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()
H A 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()
H A DReference.java26 public final AhatInstance src;
28 public final AhatInstance ref;
31 public Reference(AhatInstance src, String field, AhatInstance ref, Reachability reachability) { in Reference()
H A 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()
H A DSuperRoot.java23 class SuperRoot extends AhatInstance {
24 private List<AhatInstance> mRoots = new ArrayList<AhatInstance>();
31 void addRoot(AhatInstance root) { in addRoot()
H A 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()
H A 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()
H A 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()
H A DAhatArrayInstance.java30 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()
H A DValue.java35 public static Value pack(AhatInstance value) { in pack()
150 public AhatInstance asAhatInstance() { in asAhatInstance()
398 private AhatInstance mInstance;
400 InstanceValue(AhatInstance inst) { in InstanceValue()
411 public AhatInstance asAhatInstance() { in asAhatInstance()
/aosp12/art/tools/ahat/src/main/com/android/ahat/
H A 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()
H A 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()
H A 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()
229 List<AhatInstance> references = inst.getReverseReferences(); in printReferences()
231 for (AhatInstance ref : selector.selected()) { in printReferences()
246 private static void printBitmap(Doc doc, AhatInstance inst) { in printBitmap()
247 AhatInstance bitmap = inst.getAssociatedBitmapInstance(); in printBitmap()
[all …]
H A 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()
/aosp12/art/tools/ahat/etc/
H A Dahat_api.txt53 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.…
79 method public com.android.ahat.heapdump.AhatInstance getBaseline();
86 method public List<AhatInstance> getDominated();
88 method @Deprecated public List<AhatInstance> getHardReverseReferences();
95 method public com.android.ahat.heapdump.AhatInstance getReferent();
97 method public List<AhatInstance> getReverseReferences();
122 method public List<AhatInstance> getRooted();
194 field public final com.android.ahat.heapdump.AhatInstance instance;
[all …]

12