Lines Matching refs:std
58 std::atomic_uint8_t PointerData::backtrace_enabled_;
59 std::atomic_bool PointerData::backtrace_dump_;
61 std::mutex PointerData::pointer_mutex_;
62 std::unordered_map<uintptr_t, PointerInfoType> PointerData::pointers_ GUARDED_BY(
65 std::mutex PointerData::frame_mutex_;
66 std::unordered_map<FrameKeyType, size_t> PointerData::key_to_index_ GUARDED_BY(
68 std::unordered_map<size_t, FrameInfoType> PointerData::frames_ GUARDED_BY(PointerData::frame_mutex_…
69 std::unordered_map<size_t, std::vector<unwindstack::LocalFrameData>> PointerData::backtraces_info_ …
73 std::mutex PointerData::free_pointer_mutex_;
74 std::deque<FreePointerInfoType> PointerData::free_pointers_ GUARDED_BY(
79 static std::vector<uint8_t> g_cmp_mem(0);
138 std::vector<uintptr_t> frames; in AddBacktrace()
139 std::vector<unwindstack::LocalFrameData> frames_info; in AddBacktrace()
154 std::lock_guard<std::mutex> frame_guard(frame_mutex_); in AddBacktrace()
162 frames_.emplace(hash_index, FrameInfoType{.references = 1, .frames = std::move(frames)}); in AddBacktrace()
164 backtraces_info_.emplace(hash_index, std::move(frames_info)); in AddBacktrace()
179 std::lock_guard<std::mutex> frame_guard(frame_mutex_); in RemoveBacktrace()
203 std::lock_guard<std::mutex> pointer_guard(pointer_mutex_); in Add()
211 std::lock_guard<std::mutex> pointer_guard(pointer_mutex_); in Remove()
229 std::lock_guard<std::mutex> pointer_guard(pointer_mutex_); in GetFrames()
241 std::lock_guard<std::mutex> frame_guard(frame_mutex_); in GetFrames()
256 std::lock_guard<std::mutex> frame_guard(frame_mutex_); in LogBacktrace()
344 std::lock_guard<std::mutex> freed_guard(free_pointer_mutex_); in AddFreed()
361 std::lock_guard<std::mutex> freed_guard(free_pointer_mutex_); in LogFreeBacktrace()
379 std::lock_guard<std::mutex> freed_guard(free_pointer_mutex_); in VerifyAllFreed()
385 void PointerData::GetList(std::vector<ListInfoType>* list, bool only_with_backtrace) in GetList()
389 std::vector<unwindstack::LocalFrameData>* backtrace_info = nullptr; 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()
479 std::vector<ListInfoType> list; in LogLeaks()
481 std::lock_guard<std::mutex> pointer_guard(pointer_mutex_); in LogLeaks()
482 std::lock_guard<std::mutex> frame_guard(frame_mutex_); in LogLeaks()
500 void PointerData::GetAllocList(std::vector<ListInfoType>* list) { in GetAllocList()
501 std::lock_guard<std::mutex> pointer_guard(pointer_mutex_); in GetAllocList()
502 std::lock_guard<std::mutex> frame_guard(frame_mutex_); in GetAllocList()
513 std::lock_guard<std::mutex> pointer_guard(pointer_mutex_); in GetInfo()
514 std::lock_guard<std::mutex> frame_guard(frame_mutex_); in GetInfo()
520 std::vector<ListInfoType> list; in GetInfo()
553 std::lock_guard<std::mutex> pointer_guard(pointer_mutex_); in Exists()
558 std::vector<ListInfoType> list; in DumpLiveToFile()
560 std::lock_guard<std::mutex> pointer_guard(pointer_mutex_); in DumpLiveToFile()
561 std::lock_guard<std::mutex> frame_guard(frame_mutex_); in DumpLiveToFile()