Increases the consumption of this tracker and the ancestors up to (but not including) end_tracker. This is useful if we want to move tracking between trackers that share a common (i.e. end_tracker) ancestor. This happens when we want to update tracking on a particular mem tracker but the consumption against the limit recorded in one of its ancestors already happened.
| 157 | /// to update tracking on a particular mem tracker but the consumption against |
| 158 | /// the limit recorded in one of its ancestors already happened. |
| 159 | void ConsumeLocal(int64_t bytes, MemTracker* end_tracker) { |
| 160 | DCHECK_GE(bytes, 0); |
| 161 | if (UNLIKELY(bytes < 0)) return; // needed in RELEASE, hits DCHECK in DEBUG |
| 162 | ChangeConsumption(bytes, end_tracker); |
| 163 | } |
| 164 | |
| 165 | /// Same as above, but it decreases the consumption. |
| 166 | void ReleaseLocal(int64_t bytes, MemTracker* end_tracker) { |
no outgoing calls
no test coverage detected