Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 25 of 123) 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 …]
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()
DOverviewHandler.java72 for (AhatHeap heap : mSnapshot.getHeaps()) { in printHeapSizes()
73 Size size = heap.getSize(); in printHeapSizes()
74 Size base = heap.getBaseline().getSize(); in printHeapSizes()
76 SizeTable.row(doc, DocString.text(heap.getName()), size, base); in printHeapSizes()
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/javaheapprof/
Djavaheapsampler.cc47 VLOG(heap) << "JHP:PickAndAdjustNextSample, sample_adjust_bytes: " in PickAndAdjustNextSample()
53 VLOG(heap) << "JHP:PickAndAdjustNextSample, final bytes_until_sample: " in PickAndAdjustNextSample()
65 VLOG(heap) << "JHP:***Report Perfetto Allocation: alloc_size: " << allocation_size; in ReportSample()
67 VLOG(heap) << "JHP:***Report Perfetto Allocation: obj: " << perf_alloc_id; in ReportSample()
82 VLOG(heap) << "JHP:GetSampleOffset: exhausted_size = " << exhausted_size; in GetSampleOffset()
86 VLOG(heap) << "JHP:GetSampleOffset: diff = " << diff << " bytes_until_sample = " in GetSampleOffset()
93 VLOG(heap) << "JHP:GetSampleOffset: Take sample, next_bytes_until_sample = " in GetSampleOffset()
96 VLOG(heap) << "JHP:GetSampleOffset:Next sample offset = " in GetSampleOffset()
112 VLOG(heap) << "JHP:GetSampleOffset: No sample, next_bytes_until_sample= " in GetSampleOffset()
125 VLOG(heap) << "JHP:AdjustSampleOffset:No Adjustment"; in AdjustSampleOffset()
[all …]
/art/test/906-iterate-heap/
DAndroid.bp3 // Build rules for ART run-test `906-iterate-heap`.
16 name: "art-run-test-906-iterate-heap",
21 ":art-run-test-906-iterate-heap-expected-stdout",
22 ":art-run-test-906-iterate-heap-expected-stderr",
28 name: "art-run-test-906-iterate-heap-expected-stdout",
29 out: ["art-run-test-906-iterate-heap-expected-stdout.txt"],
36 name: "art-run-test-906-iterate-heap-expected-stderr",
37 out: ["art-run-test-906-iterate-heap-expected-stderr.txt"],
/art/runtime/gc/
Dallocation_record.cc109 VLOG(heap) << "Start SweepAllocationRecords()"; in SweepAllocationRecords()
137 VLOG(heap) << "Deleted " << count_deleted << " allocation records"; in SweepAllocationRecords()
138 VLOG(heap) << "Updated " << count_moved << " allocation records"; in SweepAllocationRecords()
158 Heap* heap = Runtime::Current()->GetHeap(); in SetAllocTrackingEnabled() local
162 if (heap->IsAllocTrackingEnabled()) { in SetAllocTrackingEnabled()
165 AllocRecordObjectMap* records = heap->GetAllocationRecords(); in SetAllocTrackingEnabled()
168 heap->SetAllocationRecords(records); in SetAllocTrackingEnabled()
171 records->SetMaxStackDepth(heap->GetAllocTrackerStackDepth()); in SetAllocTrackingEnabled()
181 heap->SetAllocTrackingEnabled(true); in SetAllocTrackingEnabled()
188 if (!heap->IsAllocTrackingEnabled()) { in SetAllocTrackingEnabled()
[all …]
Dheap_test.cc61 Heap* heap = Runtime::Current()->GetHeap(); in TEST_F() local
62 int64_t max_memory_before = heap->GetMaxMemory(); in TEST_F()
63 int64_t total_memory_before = heap->GetTotalMemory(); in TEST_F()
64 heap->ClearGrowthLimit(); in TEST_F()
65 int64_t max_memory_after = heap->GetMaxMemory(); in TEST_F()
66 int64_t total_memory_after = heap->GetTotalMemory(); in TEST_F()
114 Heap* heap = Runtime::Current()->GetHeap(); in TEST_F() local
126 heap->CollectGarbage(/* clear_soft_references= */ false); in TEST_F()
128 heap->CollectGarbage(/* clear_soft_references= */ false); in TEST_F()
164 CollectorType fg_collector_type = heap->GetForegroundCollectorType(); in TEST_F()
[all …]
/art/test/2231-checker-heap-poisoning/
DAndroid.bp3 // Build rules for ART run-test `2231-checker-heap-poisoning`.
16 name: "art-run-test-2231-checker-heap-poisoning",
21 ":art-run-test-2231-checker-heap-poisoning-expected-stdout",
22 ":art-run-test-2231-checker-heap-poisoning-expected-stderr",
31 name: "art-run-test-2231-checker-heap-poisoning-expected-stdout",
32 out: ["art-run-test-2231-checker-heap-poisoning-expected-stdout.txt"],
39 name: "art-run-test-2231-checker-heap-poisoning-expected-stderr",
40 out: ["art-run-test-2231-checker-heap-poisoning-expected-stderr.txt"],
/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.java97 for (AhatHeap heap : mHeaps) { in AhatSnapshot()
98 heap.addToSize(mSuperRoot.getRetainedSize(heap)); in AhatSnapshot()
140 for (AhatHeap heap : getHeaps()) { in getHeap()
141 if (heap.getName().equals(name)) { in getHeap()
142 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/native/
Ddalvik_system_VMDebug.cc261 gc::Heap* const heap = Runtime::Current()->GetHeap(); in VMDebug_countInstancesOfClass() local
270 heap->CountInstances(classes, countAssignable, &count); in VMDebug_countInstancesOfClass()
279 gc::Heap* const heap = Runtime::Current()->GetHeap(); in VMDebug_countInstancesOfClasses() local
293 heap->CountInstances(classes, countAssignable, &counts[0]); in VMDebug_countInstancesOfClasses()
322 gc::Heap* heap = Runtime::Current()->GetHeap(); in VMDebug_getRuntimeStatInternal() local
325 std::string output = std::to_string(heap->GetGcCount()); in VMDebug_getRuntimeStatInternal()
329 std::string output = std::to_string(NsToMs(heap->GetGcTime())); in VMDebug_getRuntimeStatInternal()
333 std::string output = std::to_string(heap->GetBytesAllocatedEver()); in VMDebug_getRuntimeStatInternal()
337 std::string output = std::to_string(heap->GetBytesFreedEver()); in VMDebug_getRuntimeStatInternal()
341 std::string output = std::to_string(heap->GetBlockingGcCount()); in VMDebug_getRuntimeStatInternal()
[all …]
/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.
74 Show progress of heap dump processing.
[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/runtime/gc/accounting/
Dmod_union_table.h60 explicit ModUnionTable(const std::string& name, Heap* heap, space::ContinuousSpace* space) in ModUnionTable() argument
62 heap_(heap), in ModUnionTable()
122 explicit ModUnionTableReferenceCache(const std::string& name, Heap* heap, in ModUnionTableReferenceCache() argument
124 : ModUnionTable(name, heap, space) {} in ModUnionTableReferenceCache()
170 explicit ModUnionTableCardCache(const std::string& name, Heap* heap,
Dmod_union_table-inl.h32 Heap* heap, in ModUnionTableToZygoteAllocspace() argument
34 : ModUnionTableReferenceCache(name, heap, space) {} in ModUnionTableToZygoteAllocspace()
Dremembered_set.h51 explicit RememberedSet(const std::string& name, Heap* heap, space::ContinuousSpace* space) in RememberedSet() argument
52 : name_(name), heap_(heap), space_(space) {} in RememberedSet()
/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/collector/
Dpartial_mark_sweep.cc27 PartialMarkSweep::PartialMarkSweep(Heap* heap, bool is_concurrent, const std::string& name_prefix) in PartialMarkSweep() argument
28 : 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/runtime/
Dread_barrier-inl.h76 gc::Heap* heap = Runtime::Current()->GetHeap(); in Barrier() local
77 if (heap != nullptr && heap->GetReadBarrierTable()->IsSet(old_ref)) { in Barrier()
226 gc::Heap* heap = Runtime::Current()->GetHeap(); in IsDuringStartup() local
227 if (heap == nullptr) { in IsDuringStartup()
231 if (heap->CurrentCollectorType() != gc::kCollectorTypeCC) { in IsDuringStartup()
235 gc::collector::ConcurrentCopying* collector = heap->ConcurrentCopyingCollector(); in IsDuringStartup()

12345