reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/lsan/lsan_common.cpp
  671   for (i = 0; i < leaks_.size(); i++) {
  672     if (leaks_[i].stack_trace_id == stack_trace_id &&
  673         leaks_[i].is_directly_leaked == is_directly_leaked) {
  674       leaks_[i].hit_count++;
  675       leaks_[i].total_size += leaked_size;
  679   if (i == leaks_.size()) {
  680     if (leaks_.size() == kMaxLeaksConsidered) return;
  683     leaks_.push_back(leak);
  686     LeakedObject obj = {leaks_[i].id, chunk, leaked_size};
  699   CHECK(leaks_.size() <= kMaxLeaksConsidered);
  701   if (leaks_.size() == kMaxLeaksConsidered)
  709   Sort(leaks_.data(), leaks_.size(), &LeakComparator);
  709   Sort(leaks_.data(), leaks_.size(), &LeakComparator);
  711   for (uptr i = 0; i < leaks_.size(); i++) {
  712     if (leaks_[i].is_suppressed) continue;
  727          leaks_[index].is_directly_leaked ? "Direct" : "Indirect",
  728          leaks_[index].total_size, leaks_[index].hit_count);
  728          leaks_[index].total_size, leaks_[index].hit_count);
  731   PrintStackTraceById(leaks_[index].stack_trace_id);
  741   u32 leak_id = leaks_[index].id;
  750   CHECK(leaks_.size() <= kMaxLeaksConsidered);
  752   for (uptr i = 0; i < leaks_.size(); i++) {
  753       if (leaks_[i].is_suppressed) continue;
  754       bytes += leaks_[i].total_size;
  755       allocations += leaks_[i].hit_count;
  764   for (uptr i = 0; i < leaks_.size(); i++) {
  765     Suppression *s = GetSuppressionForStack(leaks_[i].stack_trace_id);
  767       s->weight += leaks_[i].total_size;
  769           leaks_[i].hit_count);
  770       leaks_[i].is_suppressed = true;
  777   for (uptr i = 0; i < leaks_.size(); i++)
  778     if (!leaks_[i].is_suppressed) result++;