Lines Matching refs:leaks
60 bool GetUnreachableMemory(allocator::vector<Leak>& leaks, size_t limit, size_t* num_leaks,
137 bool MemUnreachable::GetUnreachableMemory(allocator::vector<Leak>& leaks, size_t limit, in GetUnreachableMemory() argument
140 leaks.clear(); in GetUnreachableMemory()
168 leaks.reserve(leaked.size()); in GetUnreachableMemory()
171 leaks.emplace_back(); in GetUnreachableMemory()
172 Leak* leak = &leaks.back(); in GetUnreachableMemory()
183 leaks.pop_back(); in GetUnreachableMemory()
206 std::sort(leaks.begin(), leaks.end(), in GetUnreachableMemory()
209 if (leaks.size() > limit) { in GetUnreachableMemory()
210 leaks.resize(limit); in GetUnreachableMemory()
365 allocator::vector<Leak> leaks{heap}; in GetUnreachableMemory() local
369 bool ok = unreachable.GetUnreachableMemory(leaks, limit, &num_leaks, &leak_bytes); in GetUnreachableMemory()
375 ok = ok && pipe.Sender().SendVector(leaks); in GetUnreachableMemory()
426 ok = ok && pipe.Receiver().ReceiveVector(info.leaks); in GetUnreachableMemory()
509 for (auto it = leaks.begin(); it != leaks.end(); it++) { in ToString()
521 memset(leaks.data(), 0, leaks.capacity() * sizeof(Leak)); in ~UnreachableMemoryInfo()
524 leaks.swap(tmp); in ~UnreachableMemoryInfo()
552 for (auto it = info.leaks.begin(); it != info.leaks.end(); it++) { in LogUnreachableMemory()