| 130 | } |
| 131 | |
| 132 | void MemTracker::Close() { |
| 133 | if (closed_) return; |
| 134 | if (consumption_metric_ == nullptr) { |
| 135 | DCHECK_EQ(consumption_->current_value(), 0) << label_ << "\n" |
| 136 | << GetStackTrace() << "\n" |
| 137 | << LogUsage(UNLIMITED_DEPTH); |
| 138 | } |
| 139 | closed_ = true; |
| 140 | } |
| 141 | |
| 142 | void MemTracker::CloseAndUnregisterFromParent() { |
| 143 | Close(); |
nothing calls this directly
no test coverage detected