Lines Matching refs:list
385 void PointerData::GetList(std::vector<ListInfoType>* list, bool only_with_backtrace) in GetList() argument
417 list->emplace_back(ListInfoType{entry.first, 1, entry.second.RealSize(), in GetList()
422 std::sort(list->begin(), list->end(), [](const ListInfoType& a, const ListInfoType& b) { in GetList()
457 void PointerData::GetUniqueList(std::vector<ListInfoType>* list, bool only_with_backtrace) in GetUniqueList() argument
459 GetList(list, only_with_backtrace); in GetUniqueList()
462 for (auto iter = list->begin(); iter != list->end();) { in GetUniqueList()
467 for (; dup_iter != list->end(); ++dup_iter) { in GetUniqueList()
474 iter = list->erase(iter + 1, dup_iter); in GetUniqueList()
479 std::vector<ListInfoType> list; in LogLeaks() local
483 GetList(&list, false); in LogLeaks()
486 for (const auto& list_info : list) { in LogLeaks()
488 list_info.size, list_info.pointer, ++track_count, list.size()); in LogLeaks()
500 void PointerData::GetAllocList(std::vector<ListInfoType>* list) { in GetAllocList() argument
508 GetList(list, false); in GetAllocList()
520 std::vector<ListInfoType> list; in GetInfo() local
521 GetUniqueList(&list, true); in GetInfo()
522 if (list.empty()) { in GetInfo()
528 *overall_size = *info_size * list.size(); in GetInfo()
529 *info = reinterpret_cast<uint8_t*>(g_dispatch->calloc(*info_size, list.size())); in GetInfo()
536 for (const auto& list_info : list) { in GetInfo()
558 std::vector<ListInfoType> list; in DumpLiveToFile() local
562 GetUniqueList(&list, false); in DumpLiveToFile()
565 for (const auto& info : list) { in DumpLiveToFile()
570 dprintf(fd, "Allocation records: %zd\n", list.size()); in DumpLiveToFile()
574 for (const auto& info : list) { in DumpLiveToFile()