Home
last modified time | relevance | path

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

12

/art/tools/ahat/src/test/com/android/ahat/
DInstanceTest.java21 import com.android.ahat.heapdump.AhatInstance;
40 AhatInstance str = dump.getDumpedAhatInstance("basicString"); in asStringBasic()
47 AhatInstance str = dump.getDumpedAhatInstance("nonAscii"); in asStringNonAscii()
54 AhatInstance str = dump.getDumpedAhatInstance("embeddedZero"); in asStringEmbeddedZero()
61 AhatInstance str = dump.getDumpedAhatInstance("charArray"); in asStringCharArray()
68 AhatInstance str = dump.getDumpedAhatInstance("basicString"); in asStringTruncated()
75 AhatInstance str = dump.getDumpedAhatInstance("nonAscii"); in asStringTruncatedNonAscii()
82 AhatInstance str = dump.getDumpedAhatInstance("embeddedZero"); in asStringTruncatedEmbeddedZero()
89 AhatInstance str = dump.getDumpedAhatInstance("charArray"); in asStringCharArrayTruncated()
96 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()
DDiffTest.java20 import com.android.ahat.heapdump.AhatInstance;
45 AhatInstance a = dump.getDumpedAhatInstance("unchangedObject"); in diffUnchanged()
48 AhatInstance b = dump.getBaselineDumpedAhatInstance("unchangedObject"); in diffUnchanged()
60 AhatInstance a = dump.getDumpedAhatInstance("addedObject"); in diffAdded()
71 AhatInstance b = dump.getBaselineDumpedAhatInstance("removedObject"); in diffRemoved()
DSiteTest.java19 import com.android.ahat.heapdump.AhatInstance;
35 AhatInstance oKnownSite = dump.getDumpedAhatInstance("objectAllocatedAtKnownSite"); in objectsAllocatedAtKnownSites()
42 AhatInstance oKnownSubSite = dump.getDumpedAhatInstance("objectAllocatedAtKnownSubSite"); in objectsAllocatedAtKnownSites()
64 AhatInstance oObfSuperSite = dump.getDumpedAhatInstance("objectAllocatedAtObfSuperSite"); in objectsAllocatedAtKnownSites()
71 AhatInstance oUnObfSuperSite = dump.getDumpedAhatInstance("objectAllocatedAtUnObfSuperSite"); in objectsAllocatedAtKnownSites()
78 AhatInstance oOverriddenSite = dump.getDumpedAhatInstance("objectAllocatedAtOverriddenSite"); in objectsAllocatedAtKnownSites()
DTestDump.java20 import com.android.ahat.heapdump.AhatInstance;
179 AhatInstance stuff = null; in getDumpedValue()
194 Collection<AhatInstance> classes = new ArrayList<AhatInstance>(); in findClass()
196 for (AhatInstance inst : classes) { in findClass()
219 public AhatInstance getDumpedAhatInstance(String name) { in getDumpedAhatInstance()
228 public AhatInstance getBaselineDumpedAhatInstance(String name) { in getBaselineDumpedAhatInstance()
DNativeAllocationTest.java19 import com.android.ahat.heapdump.AhatInstance;
33 AhatInstance referent = dump.getDumpedAhatInstance("anObject"); in nativeAllocation()
DPerformanceTest.java19 import com.android.ahat.heapdump.AhatInstance;
41 AhatInstance bigArray = dump.getDumpedAhatInstance("bigArray"); in bigArray()
/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.java19 import com.android.ahat.heapdump.AhatInstance;
44 List<AhatInstance> insts = new ArrayList<AhatInstance>(); in handle()
54 SubsetSelector<AhatInstance> selector = new SubsetSelector(query, OBJECTS_ID, insts); in handle()
55 for (AhatInstance inst : selector.selected()) { in handle()
56 AhatInstance base = inst.getBaseline(); in handle()
DObjectHandler.java23 import com.android.ahat.heapdump.AhatInstance;
59 AhatInstance inst = mSnapshot.findInstance(id); in handle()
64 AhatInstance base = inst.getBaseline(); in handle()
117 AhatInstance base = inst.getBaseline(); in printClassInstanceFields()
125 AhatInstance base = array.getBaseline(); in printArrayElements()
218 AhatInstance base = clsobj.getBaseline(); in printClassInfo()
224 private static void printReferences(Doc doc, Query query, AhatInstance inst) { in printReferences()
230 List<AhatInstance> references = inst.getHardReverseReferences(); in printReferences()
231 SubsetSelector<AhatInstance> selector = new SubsetSelector(query, HARD_REFS_ID, references); in printReferences()
232 for (AhatInstance ref : selector.selected()) { in printReferences()
[all …]
DSummarizer.java19 import com.android.ahat.heapdump.AhatInstance;
36 public static DocString summarize(AhatInstance inst) { in summarize()
82 AhatInstance referent = inst.getReferent(); in summarize()
102 AhatInstance bitmap = inst.getAssociatedBitmapInstance(); in summarize()
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatInstance.java34 public abstract class AhatInstance implements Diffable<AhatInstance>, class
51 private AhatInstance mNextInstanceToGcRoot;
53 private ArrayList<AhatInstance> mHardReverseReferences;
54 private ArrayList<AhatInstance> mSoftReverseReferences;
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
256 public AhatInstance getImmediateDominator() { in getImmediateDominator()
265 public List<AhatInstance> getDominated() { in getDominated()
[all …]
DDominatorReferenceIterator.java26 class DominatorReferenceIterator implements Iterator<AhatInstance>,
27 Iterable<AhatInstance> {
29 private AhatInstance mNext;
48 public AhatInstance next() { in next()
50 AhatInstance next = mNext; in next()
58 public Iterator<AhatInstance> iterator() { in iterator()
DAhatSnapshot.java33 private final Instances<AhatInstance> mInstances;
40 Instances<AhatInstance> instances, in AhatSnapshot()
49 for (AhatInstance cleaner : mInstances) { in AhatSnapshot()
50 AhatInstance.RegisteredNativeAllocation nra = cleaner.asRegisteredNativeAllocation(); in AhatSnapshot()
56 AhatInstance.computeReverseReferences(mSuperRoot); in AhatSnapshot()
58 AhatInstance.computeRetainedSize(mSuperRoot, mHeaps.size()); in AhatSnapshot()
75 public AhatInstance findInstance(long id) { in findInstance()
88 AhatInstance inst = findInstance(id); in findClassObj()
131 public List<AhatInstance> getRooted() { in getRooted()
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.java27 public final AhatInstance src;
29 public final AhatInstance ref;
32 public Reference(AhatInstance src, String field, AhatInstance ref, boolean strong) { 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.java24 class SuperRoot extends AhatInstance implements DominatorsComputation.Node {
25 private List<AhatInstance> mRoots = new ArrayList<AhatInstance>();
32 void addRoot(AhatInstance root) { in addRoot()
DInstances.java26 class Instances<T extends AhatInstance> implements Iterable<T> {
39 instances.sort(new Comparator<AhatInstance>() { in Instances()
41 public int compare(AhatInstance a, AhatInstance b) { in Instances()
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()
154 @Override AhatInstance newPlaceHolderInstance() { in newPlaceHolderInstance()
DPathElement.java37 public final AhatInstance instance;
64 public PathElement(AhatInstance instance, String field) { in PathElement()
DAhatClassInstance.java32 public class AhatClassInstance extends AhatInstance {
61 @Override public AhatInstance getRefField(String fieldName) { in getRefField()
138 AhatInstance inst = value.asAhatInstance(); in asString()
149 @Override public AhatInstance getReferent() { in getReferent()
158 AhatInstance location = getRefField("location"); in getDexCacheLocation()
166 @Override public AhatInstance getAssociatedBitmapInstance() { in getAssociatedBitmapInstance()
188 AhatInstance field = getRefField(fieldName); in getByteArrayField()
368 AhatInstance ref = field.value.asAhatInstance(); in hasNext()
406 AhatInstance ref = field.value.asAhatInstance(); in hasNext()
DAhatPlaceHolderInstance.java28 class AhatPlaceHolderInstance extends AhatInstance {
29 AhatPlaceHolderInstance(AhatInstance baseline) { in AhatPlaceHolderInstance()
DAhatArrayInstance.java30 public class AhatArrayInstance extends AhatInstance {
172 void initialize(final AhatInstance[] insts) { in initialize()
325 @Override public AhatInstance getAssociatedBitmapInstance() { in getAssociatedBitmapInstance()
327 List<AhatInstance> refs = getHardReverseReferences(); in getAssociatedBitmapInstance()
329 AhatInstance ref = refs.get(0); in getAssociatedBitmapInstance()
/art/tools/ahat/etc/
Dahat_api.txt26 public class AhatArrayInstance extends com.android.ahat.heapdump.AhatInstance {
33 public class AhatClassInstance extends com.android.ahat.heapdump.AhatInstance {
38 public class AhatClassObj extends com.android.ahat.heapdump.AhatInstance {
39 method public com.android.ahat.heapdump.AhatInstance getClassLoader();
55 …public abstract class AhatInstance implements com.android.ahat.heapdump.Diffable com.android.ahat.…
62 method public com.android.ahat.heapdump.AhatInstance getAssociatedBitmapInstance();
63 method public com.android.ahat.heapdump.AhatInstance getBaseline();
67 method public java.util.List<com.android.ahat.heapdump.AhatInstance> getDominated();
70 method public java.util.List<com.android.ahat.heapdump.AhatInstance> getHardReverseReferences();
73 method public com.android.ahat.heapdump.AhatInstance getImmediateDominator();
[all …]

12