Lines Matching refs:leaks_

480   for (i = 0; i < leaks_.size(); i++) {  in AddLeakedChunk()
481 if (leaks_[i].stack_trace_id == stack_trace_id && in AddLeakedChunk()
482 leaks_[i].is_directly_leaked == is_directly_leaked) { in AddLeakedChunk()
483 leaks_[i].hit_count++; in AddLeakedChunk()
484 leaks_[i].total_size += leaked_size; in AddLeakedChunk()
488 if (i == leaks_.size()) { in AddLeakedChunk()
489 if (leaks_.size() == kMaxLeaksConsidered) return; in AddLeakedChunk()
492 leaks_.push_back(leak); in AddLeakedChunk()
495 LeakedObject obj = {leaks_[i].id, chunk, leaked_size}; in AddLeakedChunk()
508 CHECK(leaks_.size() <= kMaxLeaksConsidered); in ReportTopLeaks()
510 if (leaks_.size() == kMaxLeaksConsidered) in ReportTopLeaks()
518 InternalSort(&leaks_, leaks_.size(), LeakComparator); in ReportTopLeaks()
520 for (uptr i = 0; i < leaks_.size(); i++) { in ReportTopLeaks()
521 if (leaks_[i].is_suppressed) continue; in ReportTopLeaks()
536 leaks_[index].is_directly_leaked ? "Direct" : "Indirect", in PrintReportForLeak()
537 leaks_[index].total_size, leaks_[index].hit_count); in PrintReportForLeak()
540 PrintStackTraceById(leaks_[index].stack_trace_id); in PrintReportForLeak()
550 u32 leak_id = leaks_[index].id; in PrintLeakedObjectsForLeak()
559 CHECK(leaks_.size() <= kMaxLeaksConsidered); in PrintSummary()
561 for (uptr i = 0; i < leaks_.size(); i++) { in PrintSummary()
562 if (leaks_[i].is_suppressed) continue; in PrintSummary()
563 bytes += leaks_[i].total_size; in PrintSummary()
564 allocations += leaks_[i].hit_count; in PrintSummary()
573 for (uptr i = 0; i < leaks_.size(); i++) { in ApplySuppressions()
574 Suppression *s = GetSuppressionForStack(leaks_[i].stack_trace_id); in ApplySuppressions()
576 s->weight += leaks_[i].total_size; in ApplySuppressions()
577 s->hit_count += leaks_[i].hit_count; in ApplySuppressions()
578 leaks_[i].is_suppressed = true; in ApplySuppressions()
585 for (uptr i = 0; i < leaks_.size(); i++) in UnsuppressedLeakCount()
586 if (!leaks_[i].is_suppressed) result++; in UnsuppressedLeakCount()