Lines Matching refs:it

98   for (auto it = heap_mappings.begin(); it != heap_mappings.end(); it++) {
99 MEM_ALOGV("Heap mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name);
100 HeapIterate(*it,
104 for (auto it = anon_mappings.begin(); it != anon_mappings.end(); it++) {
105 MEM_ALOGV("Anon mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name);
106 heap_walker_.Allocation(it->begin, it->end);
109 for (auto it = globals_mappings.begin(); it != globals_mappings.end(); it++) {
110 MEM_ALOGV("Globals mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name);
111 heap_walker_.Root(it->begin, it->end);
115 for (auto it = stack_mappings.begin(); it != stack_mappings.end(); it++) {
116 if (thread_it->stack.first >= it->begin && thread_it->stack.first <= it->end) {
117 MEM_ALOGV("Stack %" PRIxPTR "-%" PRIxPTR " %s", thread_it->stack.first, it->end, it->name);
118 heap_walker_.Root(thread_it->stack.first, it->end);
160 // Prevent reallocations of backing memory so we can store pointers into it
164 for (auto& it : leaked) {
169 reinterpret_cast<void*>(it.range.begin), leak->backtrace.frames, leak->backtrace.max_frames);
180 similar_leak->similar_size += it.range.size();
181 similar_leak->similar_referenced_count += it.referenced_count;
182 similar_leak->similar_referenced_size += it.referenced_size;
183 similar_leak->total_size += it.range.size();
184 similar_leak->total_size += it.referenced_size;
189 leak->begin = it.range.begin;
190 leak->size = it.range.size();
191 leak->referenced_count = it.referenced_count;
192 leak->referenced_size = it.referenced_size;
194 memcpy(leak->contents, reinterpret_cast<void*>(it.range.begin),
227 for (auto it = mappings.begin(); it != mappings.end(); it++) {
228 if (it->execute) {
229 current_lib = it->name;
233 if (!it->read) {
237 const allocator::string mapping_name{it->name, allocator_};
240 globals_mappings.emplace_back(*it);
243 globals_mappings.emplace_back(*it);
246 heap_mappings.emplace_back(*it);
249 globals_mappings.emplace_back(*it);
252 stack_mappings.emplace_back(*it);
254 globals_mappings.emplace_back(*it);
257 // TODO(ccross): it would be nice to treat named anonymous mappings as
259 // it impossible to distinguish them from mmaped and then named mappings.
260 globals_mappings.emplace_back(*it);
317 // memory state is still consistent. Unfreeze the original thread so it
318 // can drop the malloc locks, it will block until the collection thread
382 // Wait for the collection thread to signal that it is ready to fork the
396 // ensures no other forked processes can have it open, so when the heap
490 for (auto it = leaks.begin(); it != leaks.end(); it++) {
491 oss << it->ToString(log_contents);
533 for (auto it = info.leaks.begin(); it != info.leaks.end(); it++) {
534 MEM_ALOGE("%s", it->ToString(log_contents).c_str());