Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 25 of 109) sorted by relevance

12345

/art/tools/ahat/src/main/com/android/ahat/
DHeapTable.java44 long getSize(T element, AhatHeap heap); in getSize() argument
57 for (AhatHeap heap : snapshot.getHeaps()) { in render()
58 if (hasNonZeroEntry(heap, config, elements)) { in render()
59 heaps.add(heap); in render()
67 for (AhatHeap heap : heaps) { in render()
68 subcols.add(new Column(heap.getName(), Column.Align.RIGHT)); in render()
88 for (AhatHeap heap : heaps) { in render()
89 long size = config.getSize(elem, heap); in render()
90 long basesize = config.getSize(base, heap.getBaseline()); in render()
110 for (AhatHeap heap : heaps) { in render()
[all …]
DOverviewHandler.java68 for (AhatHeap heap : mSnapshot.getHeaps()) { in printHeapSizes()
69 Size size = heap.getSize(); in printHeapSizes()
70 Size base = heap.getBaseline().getSize(); in printHeapSizes()
72 SizeTable.row(doc, DocString.text(heap.getName()), size, base); in printHeapSizes()
DSiteHandler.java63 public long getSize(Site element, AhatHeap heap) { in handle()
64 return element.getSize(heap).getSize(); in handle()
104 site.getId(), info.heap.getName(), className), in handle()
107 DocString.text(info.heap.getName()), in handle()
DObjectsHandler.java96 for (AhatHeap heap : mSnapshot.getHeaps()) { in handle()
97 if (!heap.getName().equals(heapName)) { in handle()
100 query.with("heap", heap.getName()), in handle()
101 DocString.text(heap.getName())); in handle()
/art/runtime/gc/
Dallocation_record.cc93 VLOG(heap) << "Start SweepAllocationRecords()"; in SweepAllocationRecords()
121 VLOG(heap) << "Deleted " << count_deleted << " allocation records"; in SweepAllocationRecords()
122 VLOG(heap) << "Updated " << count_moved << " allocation records"; in SweepAllocationRecords()
142 Heap* heap = Runtime::Current()->GetHeap(); in SetAllocTrackingEnabled() local
146 if (heap->IsAllocTrackingEnabled()) { in SetAllocTrackingEnabled()
149 AllocRecordObjectMap* records = heap->GetAllocationRecords(); in SetAllocTrackingEnabled()
152 heap->SetAllocationRecords(records); in SetAllocTrackingEnabled()
155 records->SetMaxStackDepth(heap->GetAllocTrackerStackDepth()); in SetAllocTrackingEnabled()
165 heap->SetAllocTrackingEnabled(true); in SetAllocTrackingEnabled()
172 if (!heap->IsAllocTrackingEnabled()) { in SetAllocTrackingEnabled()
[all …]
Dheap_test.cc54 Heap* heap = Runtime::Current()->GetHeap(); in TEST_F() local
55 int64_t max_memory_before = heap->GetMaxMemory(); in TEST_F()
56 int64_t total_memory_before = heap->GetTotalMemory(); in TEST_F()
57 heap->ClearGrowthLimit(); in TEST_F()
58 int64_t max_memory_after = heap->GetMaxMemory(); in TEST_F()
59 int64_t total_memory_after = heap->GetTotalMemory(); in TEST_F()
Dverification.h40 explicit Verification(gc::Heap* heap) : heap_(heap) {} in Verification() argument
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DSite.java79 public AhatHeap heap; field in Site.ObjectsInfo
102 ObjectsInfo(AhatHeap heap, AhatClassObj classObj) { in ObjectsInfo() argument
103 this.heap = heap; in ObjectsInfo()
220 AhatHeap heap = inst.getHeap(); in prepareForUse() local
222 ObjectsInfo info = getObjectsInfo(heap, inst.getClassObj()); in prepareForUse()
225 mSizesByHeap[heap.getIndex()] = mSizesByHeap[heap.getIndex()].plus(size); in prepareForUse()
233 ObjectsInfo info = getObjectsInfo(childInfo.heap, childInfo.classObj); in prepareForUse()
252 public Size getSize(AhatHeap heap) { in getSize() argument
253 return mSizesByHeap[heap.getIndex()]; in getSize()
302 ObjectsInfo getObjectsInfo(AhatHeap heap, AhatClassObj classObj) { in getObjectsInfo() argument
[all …]
DAhatSnapshot.java93 for (AhatHeap heap : mHeaps) { in AhatSnapshot()
94 heap.addToSize(mSuperRoot.getRetainedSize(heap)); in AhatSnapshot()
136 for (AhatHeap heap : getHeaps()) { in getHeap()
137 if (heap.getName().equals(name)) { in getHeap()
138 return heap; in getHeap()
DSort.java68 public InstanceByHeapRetainedSize(AhatHeap heap) { in InstanceByHeapRetainedSize() argument
69 mHeap = heap; in InstanceByHeapRetainedSize()
165 public SiteByHeapSize(AhatHeap heap) { in SiteByHeapSize() argument
166 mHeap = heap; in SiteByHeapSize()
231 return a.heap.getName().compareTo(b.heap.getName());
/art/runtime/
Daot_class_linker.cc131 bool AotClassLinker::CanReferenceInBootImageExtension(ObjPtr<mirror::Class> klass, gc::Heap* heap) { in CanReferenceInBootImageExtension() argument
137 if (heap->ObjectIsInBootImageSpace(klass)) { in CanReferenceInBootImageExtension()
145 DCHECK(heap->ObjectIsInBootImageSpace(klass->GetIfTable())); // IfTable is OK. in CanReferenceInBootImageExtension()
160 if (heap->ObjectIsInBootImageSpace(klass->GetDexCache())) { in CanReferenceInBootImageExtension()
166 while (!heap->ObjectIsInBootImageSpace(superclass)) { in CanReferenceInBootImageExtension()
168 if (heap->ObjectIsInBootImageSpace(superclass->GetDexCache())) { in CanReferenceInBootImageExtension()
179 if (!heap->ObjectIsInBootImageSpace(interface) && in CanReferenceInBootImageExtension()
180 heap->ObjectIsInBootImageSpace(interface->GetDexCache())) { in CanReferenceInBootImageExtension()
189 while (!heap->ObjectIsInBootImageSpace(k)) { in CanReferenceInBootImageExtension()
192 CHECK(heap->ObjectIsInBootImageSpace(declaring_class) || in CanReferenceInBootImageExtension()
[all …]
Dread_barrier-inl.h82 gc::Heap* heap = Runtime::Current()->GetHeap(); in Barrier() local
83 if (heap != nullptr && heap->GetReadBarrierTable()->IsSet(old_ref)) { in Barrier()
213 gc::Heap* heap = Runtime::Current()->GetHeap(); in IsDuringStartup() local
214 if (heap == nullptr) { in IsDuringStartup()
218 if (heap->CurrentCollectorType() != gc::kCollectorTypeCC) { in IsDuringStartup()
222 gc::collector::ConcurrentCopying* collector = heap->ConcurrentCopyingCollector(); in IsDuringStartup()
/art/tools/ahat/
DREADME.txt5 Launch an http server for viewing the given Android heap dump FILE.
11 Use the proguard map FILE to deobfuscate the heap dump.
13 Diff the heap dump against the given baseline heap dump FILE.
15 Use the proguard map FILE to deobfuscate the baseline heap dump.
22 * Dim 'image' and 'zygote' heap sizes slightly? Why do we even show these?
25 * Show site context and heap and class filter in "Objects" view?
30 * For HeapTable with single heap shown, the heap name isn't centered?
41 * That we can open a hprof without an 'app' heap and show a tabulation of
42 objects normally sorted by 'app' heap by default.
64 Show progress of heap dump processing.
[all …]
/art/runtime/native/
Ddalvik_system_VMDebug.cc291 gc::Heap* const heap = Runtime::Current()->GetHeap(); in VMDebug_countInstancesOfClass() local
300 heap->CountInstances(classes, countAssignable, &count); in VMDebug_countInstancesOfClass()
309 gc::Heap* const heap = Runtime::Current()->GetHeap(); in VMDebug_countInstancesOfClasses() local
323 heap->CountInstances(classes, countAssignable, &counts[0]); in VMDebug_countInstancesOfClasses()
359 gc::Heap* const heap = Runtime::Current()->GetHeap(); in VMDebug_getInstancesOfClasses() local
366 heap->GetInstances(hs2, h_class, includeAssignable, /* max_count= */ 0, raw_instances); in VMDebug_getInstancesOfClasses()
399 gc::Heap* heap = Runtime::Current()->GetHeap(); in VMDebug_getHeapSpaceStats() local
402 for (gc::space::ContinuousSpace* space : heap->GetContinuousSpaces()) { in VMDebug_getHeapSpaceStats()
420 for (gc::space::DiscontinuousSpace* space : heap->GetDiscontinuousSpaces()) { in VMDebug_getHeapSpaceStats()
458 gc::Heap* heap = Runtime::Current()->GetHeap(); in VMDebug_getRuntimeStatInternal() local
[all …]
/art/dex2oat/linker/
Dimage_write_read_test.cc42 gc::Heap* heap = Runtime::Current()->GetHeap(); in TestWriteRead() local
43 ASSERT_TRUE(heap->HaveContinuousSpaces()); in TestWriteRead()
44 gc::space::ContinuousSpace* space = heap->GetNonMovingSpace(); in TestWriteRead()
88 gc::Heap* heap = Runtime::Current()->GetHeap(); in TestWriteRead() local
89 ASSERT_TRUE(heap->HasBootImageSpace()); in TestWriteRead()
90 ASSERT_TRUE(heap->GetNonMovingSpace()->IsMallocSpace()); in TestWriteRead()
93 ASSERT_EQ(heap->GetBootImageSpaces().size(), image_file_sizes.size()); in TestWriteRead()
100 gc::space::ImageSpace* image_space = heap->GetBootImageSpaces()[i]; in TestWriteRead()
/art/runtime/mirror/
Dobject_array-alloc-inl.h68 gc::Heap* heap = Runtime::Current()->GetHeap(); in CopyOf() local
69 gc::AllocatorType allocator_type = heap->IsMovableObject(h_this.Get()) in CopyOf()
70 ? heap->GetCurrentAllocator() in CopyOf()
71 : heap->GetCurrentNonMovingAllocator(); in CopyOf()
Dclass-alloc-inl.h52 gc::Heap* heap = Runtime::Current()->GetHeap(); in Alloc() local
65 heap->AllocObjectWithAllocator<kIsInstrumented, /*kCheckLargeObject=*/ false>( in Alloc()
68 heap->AddFinalizerReference(self, &obj); in Alloc()
/art/test/104-growth-limit/
Dinfo.txt2 conventions, can be cleared and the resulting heap is at least as large
3 as the growth limited heap.
/art/runtime/gc/accounting/
Dmod_union_table-inl.h32 Heap* heap, in ModUnionTableToZygoteAllocspace() argument
34 : ModUnionTableReferenceCache(name, heap, space) {} in ModUnionTableToZygoteAllocspace()
Dmod_union_table.h59 explicit ModUnionTable(const std::string& name, Heap* heap, space::ContinuousSpace* space) in ModUnionTable() argument
61 heap_(heap), in ModUnionTable()
121 explicit ModUnionTableReferenceCache(const std::string& name, Heap* heap, in ModUnionTableReferenceCache() argument
123 : ModUnionTable(name, heap, space) {} in ModUnionTableReferenceCache()
169 explicit ModUnionTableCardCache(const std::string& name, Heap* heap,
Dremembered_set.h50 explicit RememberedSet(const std::string& name, Heap* heap, space::ContinuousSpace* space) in RememberedSet() argument
51 : name_(name), heap_(heap), space_(space) {} in RememberedSet()
/art/runtime/gc/collector/
Dpartial_mark_sweep.cc28 PartialMarkSweep::PartialMarkSweep(Heap* heap, bool is_concurrent, const std::string& name_prefix) in PartialMarkSweep() argument
29 : MarkSweep(heap, is_concurrent, name_prefix.empty() ? "partial " : name_prefix) { in PartialMarkSweep()
Dsticky_mark_sweep.cc31 StickyMarkSweep::StickyMarkSweep(Heap* heap, bool is_concurrent, const std::string& name_prefix) in StickyMarkSweep() argument
32 : PartialMarkSweep(heap, is_concurrent, name_prefix.empty() ? "sticky " : name_prefix) { in StickyMarkSweep()
/art/runtime/gc/space/
Dmalloc_space.cc154 VLOG(heap) << "MallocSpace::MoreCore " << PrettySize(increment); in MoreCore()
198 VLOG(heap) << "Begin " << reinterpret_cast<const void*>(begin_) << "\n" in CreateZygoteSpace()
206 VLOG(heap) << "Creating new AllocSpace: "; in CreateZygoteSpace()
207 VLOG(heap) << "Size " << GetMemMap()->Size(); in CreateZygoteSpace()
208 VLOG(heap) << "GrowthLimit " << PrettySize(growth_limit); in CreateZygoteSpace()
209 VLOG(heap) << "Capacity " << PrettySize(capacity); in CreateZygoteSpace()
242 VLOG(heap) << "Failed creating zygote space from space " << GetName(); in CreateZygoteSpace()
244 VLOG(heap) << "zygote space creation done"; in CreateZygoteSpace()
/art/test/617-clinit-oome/
Dexpected.txt1 Filling heap

12345