Home
last modified time | relevance | path

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

/system/core/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/core/libmemunreachable/
DMemUnreachable.cpp59 bool GetUnreachableMemory(allocator::vector<Leak>& leaks, size_t limit, size_t* num_leaks,
137 size_t* num_leaks, size_t* leak_bytes) { in GetUnreachableMemory() argument
146 heap_walker_.Leaked(leaked1, 0, num_leaks, leak_bytes); in GetUnreachableMemory()
159 if (!folding.Leaked(leaked, num_leaks, leak_bytes)) { in GetUnreachableMemory()
358 size_t num_leaks = 0; in GetUnreachableMemory() local
360 bool ok = unreachable.GetUnreachableMemory(leaks, limit, &num_leaks, &leak_bytes); in GetUnreachableMemory()
364 ok = ok && pipe.Sender().Send(num_leaks); in GetUnreachableMemory()
415 ok = ok && pipe.Receiver().Receive(&info.num_leaks); in GetUnreachableMemory()
424 info.leak_bytes, info.num_leaks, plural(info.num_leaks), info.allocation_bytes, in GetUnreachableMemory()
495 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.cpp148 size_t num_leaks = 0; in Leaked() local
152 num_leaks++; in Leaked()
167 *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/core/libmemunreachable/include/memunreachable/
Dmemunreachable.h59 size_t num_leaks; member