Home
last modified time | relevance | path

Searched refs:num_leaks (Results 1 – 7 of 7) sorted by relevance

/system/memory/libmemunreachable/tests/
DLeakFolding_test.cpp59 size_t num_leaks = 0; in TEST_F() local
61 ASSERT_EQ(true, folding.Leaked(leaked, &num_leaks, &leaked_bytes)); in TEST_F()
63 EXPECT_EQ(1U, num_leaks); in TEST_F()
84 size_t num_leaks = 0; in TEST_F() local
86 ASSERT_EQ(true, folding.Leaked(leaked, &num_leaks, &leaked_bytes)); in TEST_F()
88 EXPECT_EQ(2U, num_leaks); in TEST_F()
113 size_t num_leaks = 0; in TEST_F() local
115 ASSERT_EQ(true, folding.Leaked(leaked, &num_leaks, &leaked_bytes)); in TEST_F()
117 EXPECT_EQ(2U, num_leaks); in TEST_F()
144 size_t num_leaks = 0; in TEST_F() local
[all …]
DHeapWalker_test.cpp109 size_t num_leaks = 0; in TEST_F() local
111 ASSERT_EQ(true, heap_walker.Leaked(leaked, 100, &num_leaks, &leaked_bytes)); in TEST_F()
113 EXPECT_EQ(1U, num_leaks); in TEST_F()
137 size_t num_leaks = SIZE_MAX; in TEST_F() local
139 ASSERT_EQ(true, heap_walker.Leaked(leaked, 100, &num_leaks, &leaked_bytes)); in TEST_F()
141 EXPECT_EQ(0U, num_leaks); in TEST_F()
165 size_t num_leaks = SIZE_MAX; in TEST_F() local
167 ASSERT_EQ(true, heap_walker.Leaked(leaked, 100, &num_leaks, &leaked_bytes)); in TEST_F()
169 EXPECT_EQ(0U, num_leaks); in TEST_F()
190 size_t num_leaks = 0; in TEST_F() local
[all …]
/system/memory/libmemunreachable/
DMemUnreachable.cpp60 bool GetUnreachableMemory(allocator::vector<Leak>& leaks, size_t limit, size_t* num_leaks,
138 size_t* num_leaks, size_t* leak_bytes) { in GetUnreachableMemory() argument
147 heap_walker_.Leaked(leaked1, 0, num_leaks, leak_bytes); in GetUnreachableMemory()
160 if (!folding.Leaked(leaked, num_leaks, leak_bytes)) { in GetUnreachableMemory()
367 size_t num_leaks = 0; in GetUnreachableMemory() local
369 bool ok = unreachable.GetUnreachableMemory(leaks, limit, &num_leaks, &leak_bytes); in GetUnreachableMemory()
373 ok = ok && pipe.Sender().Send(num_leaks); in GetUnreachableMemory()
424 ok = ok && pipe.Receiver().Receive(&info.num_leaks); in GetUnreachableMemory()
433 info.leak_bytes, info.num_leaks, plural(info.num_leaks), info.allocation_bytes, in GetUnreachableMemory()
504 oss << num_leaks << " unreachable allocation" << plural(num_leaks); in ToString()
[all …]
DLeakFolding.cpp112 size_t num_leaks = 0; in Leaked() local
116 num_leaks++; in Leaked()
129 *num_leaks_out = num_leaks; in Leaked()
DHeapWalker.cpp166 size_t num_leaks = 0; in Leaked() local
170 num_leaks++; in Leaked()
185 *num_leaks_out = num_leaks; in Leaked()
DHeapWalker.h84 bool Leaked(allocator::vector<Range>&, size_t limit, size_t* num_leaks, size_t* leak_bytes);
/system/memory/libmemunreachable/include/memunreachable/
Dmemunreachable.h63 size_t num_leaks = 0; member