Home
last modified time | relevance | path

Searched refs:alloc (Results 1 – 21 of 21) sorted by relevance

/art/tools/ahat/src/
DNativeAllocationsHandler.java41 for (InstanceUtils.NativeAllocation alloc : allocs) { in handle()
42 totalSize += alloc.size; in handle()
67 for (InstanceUtils.NativeAllocation alloc : selector.selected()) { in handle()
69 DocString.format("%,14d", alloc.size), in handle()
70 DocString.text(alloc.heap.getName()), in handle()
71 DocString.format("0x%x", alloc.pointer), in handle()
72 Value.render(mSnapshot, alloc.referent)); in handle()
79 for (InstanceUtils.NativeAllocation alloc : remaining) { in handle()
80 total += alloc.size; in handle()
DOverviewHandler.java56 for (InstanceUtils.NativeAllocation alloc : allocs) { in handle()
57 totalSize += alloc.size; in handle()
DAhatSnapshot.java124 InstanceUtils.NativeAllocation alloc = InstanceUtils.getNativeAllocation(inst); in AhatSnapshot() local
125 if (alloc != null) { in AhatSnapshot()
126 mNativeAllocations.add(alloc); in AhatSnapshot()
/art/tools/ahat/test/
DNativeAllocationTest.java33 for (InstanceUtils.NativeAllocation alloc : snapshot.getNativeAllocations()) { in nativeAllocation()
34 if (alloc.referent == referent) { in nativeAllocation()
35 assertEquals(42 , alloc.size); in nativeAllocation()
36 assertEquals(referent.getHeap(), alloc.heap); in nativeAllocation()
37 assertEquals(0xABCDABCD , alloc.pointer); in nativeAllocation()
/art/runtime/base/
Ddchecked_vector.h60 explicit dchecked_vector(const allocator_type& alloc) in dchecked_vector() argument
61 : Base(alloc) { } in dchecked_vector()
64 explicit dchecked_vector(size_type n, const allocator_type& alloc = allocator_type())
65 : Base(alloc) { resize(n); } in Base() argument
68 const allocator_type& alloc = allocator_type())
69 : Base(n, value, alloc) { } in Base() argument
73 const allocator_type& alloc = allocator_type())
74 : Base(first, last, alloc) { } in Base() argument
77 dchecked_vector(const dchecked_vector& src, const allocator_type& alloc) in dchecked_vector() argument
78 : Base(src, alloc) { } in dchecked_vector()
[all …]
Dhash_map.h68 explicit HashMap(const Alloc& alloc) in HashMap() argument
69 : Base(alloc) { } in HashMap()
Dallocator.h120 TrackingAllocatorImpl(const TrackingAllocatorImpl<U, kTag>& alloc ATTRIBUTE_UNUSED) noexcept {} in TrackingAllocatorImpl()
Dhash_set.h155 explicit HashSet(const allocator_type& alloc) noexcept in HashSet() argument
156 : allocfn_(alloc), in HashSet()
/art/compiler/utils/
Dswap_space_test.cc40 SwapAllocator<void> alloc(use_file ? &pool : nullptr); in SwapTest() local
42 SwapVector<int32_t> v(alloc); in SwapTest()
49 SwapVector<int32_t> v2(alloc); in SwapTest()
56 SwapVector<int32_t> v3(alloc); in SwapTest()
Ddedupe_set_test.cc56 DedupeSetTestAlloc alloc; in TEST() local
61 DedupeSetTestHashFunc> deduplicator("test", alloc); in TEST()
Ddedupe_set-inl.h55 Shard(const Alloc& alloc, const std::string& lock_name)
56 : alloc_(alloc),
210 const Alloc& alloc)
215 shards_[i].reset(new Shard(alloc, oss.str()));
Ddedupe_set.h44 DedupeSet(const char* set_name, const Alloc& alloc);
/art/runtime/
Dmonitor_pool_test.cc63 bool alloc; in TEST_F() local
65 alloc = true; in TEST_F()
67 alloc = false; in TEST_F()
70 alloc = r.next() % 2 == 0; in TEST_F()
73 if (alloc) { in TEST_F()
Dleb128.h239 explicit Leb128EncodingVector(const typename Vector::allocator_type& alloc) in Leb128EncodingVector() argument
240 : Vector(alloc), in Leb128EncodingVector()
/art/compiler/
Dcompiled_method.cc133 SwapAllocator<CompiledMethod> alloc(driver->GetCompiledMethodStorage()->GetSwapSpaceAllocator()); in SwapAllocCompiledMethod() local
134 CompiledMethod* ret = alloc.allocate(1); in SwapAllocCompiledMethod()
135 alloc.construct(ret, in SwapAllocCompiledMethod()
149 SwapAllocator<CompiledMethod> alloc(driver->GetCompiledMethodStorage()->GetSwapSpaceAllocator()); in ReleaseSwapAllocatedCompiledMethod() local
150 alloc.destroy(m); in ReleaseSwapAllocatedCompiledMethod()
151 alloc.deallocate(m, 1); in ReleaseSwapAllocatedCompiledMethod()
Dcompiled_method.h123 explicit SrcMap(const Allocator& alloc) : std::vector<SrcMapElem, Allocator>(alloc) {} in SrcMap() argument
126 SrcMap(InputIt first, InputIt last, const Allocator& alloc) in SrcMap() argument
127 : std::vector<SrcMapElem, Allocator>(first, last, alloc) {} in SrcMap()
/art/compiler/debug/dwarf/
Ddebug_line_opcode_writer.h225 const typename Vector::allocator_type& alloc =
228 opcodes_(alloc),
Ddebug_info_entry_writer.h202 const typename Vector::allocator_type& alloc =
206 entries_(alloc),
Ddebug_frame_opcode_writer.h301 const typename Vector::allocator_type& alloc =
305 opcodes_(alloc),
/art/runtime/jit/
Djit_code_cache.cc261 void JitCodeCache::RemoveMethodsIn(Thread* self, const LinearAlloc& alloc) { in RemoveMethodsIn() argument
270 if (alloc.ContainsUnsafe(it->second)) { in RemoveMethodsIn()
279 if (alloc.ContainsUnsafe(it->first)) { in RemoveMethodsIn()
288 if (alloc.ContainsUnsafe(info->GetMethod())) { in RemoveMethodsIn()
Djit_code_cache.h147 void RemoveMethodsIn(Thread* self, const LinearAlloc& alloc)