Home
last modified time | relevance | path

Searched refs:allocs (Results 1 – 25 of 63) sorted by relevance

123

/external/tensorflow/tensorflow/lite/
Dsimple_memory_arena_test.cc29 ArenaAllocWithUsageInterval allocs[6]; in TEST() local
31 arena.Allocate(&context, 32, 2047, 0, 1, 3, &allocs[0]); in TEST()
32 arena.Allocate(&context, 32, 2047, 1, 2, 5, &allocs[1]); in TEST()
33 arena.Allocate(&context, 32, 2047, 2, 3, 6, &allocs[2]); in TEST()
34 arena.Allocate(&context, 32, 2047, 3, 5, 6, &allocs[3]); in TEST()
35 arena.Allocate(&context, 32, 1023, 4, 4, 6, &allocs[4]); in TEST()
36 arena.Allocate(&context, 32, 1023, 5, 6, 6, &allocs[5]); in TEST()
38 EXPECT_EQ(allocs[0].offset, 0); in TEST()
39 EXPECT_EQ(allocs[1].offset, 2048); in TEST()
40 EXPECT_EQ(allocs[2].offset, 4096); in TEST()
[all …]
/external/llvm-project/compiler-rt/lib/fuzzer/scripts/
Dunbalanced_allocs.py37 def ProcessFree(line, f, allocs): argument
43 if addr in allocs:
44 del allocs[addr]
49 def ProcessMalloc(line, f, allocs): argument
51 return ProcessFree(line, f, allocs)
54 assert not addr in allocs
57 allocs[addr] = (line, stack)
64 allocs = {}
71 for _, (l, s) in allocs.items():
75 line = ProcessMalloc(line, f, allocs)
/external/rust/crates/libfuzzer-sys/libfuzzer/scripts/
Dunbalanced_allocs.py37 def ProcessFree(line, f, allocs): argument
43 if addr in allocs:
44 del allocs[addr]
49 def ProcessMalloc(line, f, allocs): argument
51 return ProcessFree(line, f, allocs)
54 assert not addr in allocs
57 allocs[addr] = (line, stack)
64 allocs = {}
71 for _, (l, s) in allocs.items():
75 line = ProcessMalloc(line, f, allocs)
/external/llvm-project/mlir/include/mlir/Transforms/
DBufferUtils.h52 AllocEntryList::const_iterator begin() const { return allocs.begin(); } in begin()
55 AllocEntryList::const_iterator end() const { return allocs.end(); } in end()
58 AllocEntryList::iterator begin() { return allocs.begin(); } in begin()
61 AllocEntryList::iterator end() { return allocs.end(); } in end()
64 void registerAlloc(const AllocEntry &entry) { allocs.push_back(entry); } in registerAlloc()
72 AllocEntryList allocs;
116 BufferPlacementAllocs allocs; variable
/external/llvm-project/libcxxabi/test/
Dtest_fallback_malloc.pass.cpp137 const size_t allocs [] = { 124, 60, 252, 60, 4 }; in exhaustion_test3() local
144 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
154 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
162 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
/external/llvm-project/compiler-rt/test/scudo/
Drss.c28 static void *allocs[kNumAllocs]; variable
36 allocs[i] = malloc(kAllocSize); in main()
37 if (allocs[i]) in main()
38 memset(allocs[i], 0xff, kAllocSize); // Dirty the pages. in main()
43 free(allocs[i]); in main()
/external/scudo/standalone/tools/
Dcompute_size_class_config.cpp21 size_t measureWastage(const std::vector<Alloc> &allocs, in measureWastage() argument
25 for (auto &a : allocs) { in measureWastage()
40 void readAllocs(std::vector<Alloc> &allocs, const char *path) { in readAllocs() argument
59 allocs.push_back(a); in readAllocs()
79 std::vector<Alloc> allocs; in main() local
97 readAllocs(allocs, argv[i]); in main()
101 if (allocs.empty()) in main()
118 size_t newWastage = measureWastage(allocs, classes, pageSize, headerSize); in main()
147 measureWastage(allocs, classes, pageSize, headerSize), numBits, in main()
/external/llvm-project/compiler-rt/lib/scudo/standalone/tools/
Dcompute_size_class_config.cpp21 size_t measureWastage(const std::vector<Alloc> &allocs, in measureWastage() argument
26 for (auto &a : allocs) { in measureWastage()
41 void readAllocs(std::vector<Alloc> &allocs, const char *path) { in readAllocs() argument
59 allocs.push_back(a); in readAllocs()
79 std::vector<Alloc> allocs; in main() local
97 readAllocs(allocs, argv[i]); in main()
101 if (allocs.empty()) in main()
118 size_t newWastage = measureWastage(allocs, classes, pageSize, headerSize); in main()
147 measureWastage(allocs, classes, pageSize, headerSize), numBits, in main()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dsoft_rss_limit_mb_test.cpp30 static char *allocs[kMaxNumAllocs]; variable
42 allocs[j] = (char*)malloc(kAllocSize); in main()
43 if (allocs[j]) in main()
44 memset(allocs[j], -1, kAllocSize); in main()
55 free(allocs[j]); in main()
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dsoft_rss_limit_mb_test.cc24 static char *allocs[kMaxNumAllocs]; variable
36 allocs[j] = (char*)malloc(kAllocSize); in main()
37 if (allocs[j]) in main()
38 memset(allocs[j], -1, kAllocSize); in main()
49 free(allocs[j]); in main()
/external/libcxxabi/test/
Dtest_fallback_malloc.pass.cpp134 const size_t allocs [] = { 124, 60, 252, 60, 4 }; in exhaustion_test3() local
141 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
151 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
159 ptrs = alloc_series ( allocs, sizeof ( allocs ) / sizeof ( allocs[0] )); in exhaustion_test3()
/external/bcc/tools/
Dmemleak_example.txt9 # ./memleak -p $(pidof allocs)
13 main+0x6d [allocs]
18 main+0x6d [allocs]
23 stack, and that weren't freed yet. The number of bytes and number of allocs
26 As time goes on, it becomes apparent that the main function in the allocs
35 # ./memleak -p $(pidof allocs) -a
43 main+0x6d [allocs]
58 main+0x6d [allocs]
128 # ./memleak -p $(pidof allocs) -s 10 5 3
132 main+0x6d [allocs]
[all …]
/external/grpc-grpc/test/core/gpr/
Darena_test.cc36 static void test(const char* name, size_t init_size, const size_t* allocs, in test() argument
44 gpr_asprintf(&s, "%" PRIdPTR ",", allocs[i]); in test()
56 ps[i] = gpr_arena_alloc(a, allocs[i]); in test()
64 memset(ps[i], 1, allocs[i]); in test()
/external/crosvm/resources/src/
Daddress_allocator.rs30 allocs: HashMap<Alloc, (u64, u64, String)>, field
60 allocs: HashMap::new(), in new()
77 if self.allocs.contains_key(&alloc) { in allocate_with_align()
113 self.allocs.insert(alloc, (start, size, tag)); in allocate_with_align()
130 if self.allocs.contains_key(&alloc) { in allocate_at()
152 self.allocs.insert(alloc, (start, size, tag)); in allocate_at()
162 self.allocs in release()
169 self.allocs.get(alloc) in get()
226 match self.allocs.get(&alloc) { in address_from_pci_offset()
/external/perfetto/src/profiling/memory/
Dbookkeeping.h113 uint64_t allocs = 0; member
157 if (alloc.allocs == 0 && in GetCallstackAllocations()
173 if (alloc.allocs == 0) in GetCallstackAllocations()
233 callstack_allocations_->allocs--; in SetCallstackAllocations()
236 callstack_allocations_->allocs++; in SetCallstackAllocations()
/external/perfetto/tools/
Dmultithreaded_alloc.cc41 std::atomic<uint64_t> allocs{0}; variable
80 allocs.fetch_add(thread_allocs, std::memory_order_relaxed); in Thread()
133 allocs.load(std::memory_order_relaxed)); in main()
/external/llvm-project/libcxx/test/std/containers/associative/map/map.cons/
Dcopy_assign.pass.cpp92 std::ptrdiff_t const allocs = std::count(ca_allocs.begin(), ca_allocs.end(), *it); in balanced_allocs() local
94 std::printf("%d: %td vs %td\n", *it, allocs, deallocs); in balanced_allocs()
95 if (allocs != deallocs) in balanced_allocs()
106 std::ptrdiff_t const allocs = std::count(ca_allocs.begin(), ca_allocs.end(), *it); in balanced_allocs() local
108 std::printf("%d: %td vs %td\n", *it, allocs, deallocs); in balanced_allocs()
109 if (allocs != deallocs) in balanced_allocs()
/external/llvm-project/mlir/lib/Transforms/
DBufferUtils.cpp99 allocs.push_back(std::make_tuple(allocValue, findDealloc(allocValue))); in build()
110 : aliases(op), allocs(op), liveness(op) {} in BufferPlacementTransformationBase()
DBufferDeallocation.cpp216 for (BufferPlacementAllocs::AllocEntry &entry : allocs) { in introduceCopies()
241 allocs.registerAlloc(std::make_tuple(value, nullptr)); in introduceCopies()
427 for (const BufferPlacementAllocs::AllocEntry &entry : allocs) { in placeDeallocs()
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_timeline.cc154 std::map<int64, int64> allocs; in TrackNode() local
156 allocs[alloc.alloc_micros()] += alloc.alloc_bytes(); in TrackNode()
160 allocs[0] += node->node->accelerator_persistent_bytes(); in TrackNode()
164 for (auto it = allocs.begin(); it != allocs.end(); ++it) { in TrackNode()
/external/jemalloc_new/src/
Dandroid_je_mallinfo.c28 size_t allocs = (size_t)(nmalloc - ndalloc); in accumulate_large_allocs() local
29 total_bytes += sz_index2size(NBINS + j) * allocs; in accumulate_large_allocs()
/external/bcc/examples/lua/
Dmemleak.lua144 local allocs = bpf:get_table("allocs")
162 for address, info in allocs:items() do
/external/bcc/tools/old/
Dmemleak.py248 allocs = bpf_program.get_table("allocs")
249 for address, info in sorted(allocs.items(), key=lambda a: a[1].size):
/external/swiftshader/src/OpenGL/compiler/
DPoolAlloc.cpp130 for (auto& allocs : mStack) { in ~TPoolAllocator()
131 for (auto alloc : allocs) { in ~TPoolAllocator()
/external/angle/src/common/
DPoolAlloc.cpp115 for (auto &allocs : mStack) in ~PoolAllocator()
117 for (auto alloc : allocs) in ~PoolAllocator()

123