| 281 | bool has_limit() const { return limit_ >= 0; } |
| 282 | int64_t soft_limit() const { return soft_limit_; } |
| 283 | int64_t GetLimit(MemLimit mode) const { |
| 284 | if (mode == MemLimit::SOFT) return soft_limit(); |
| 285 | DCHECK_ENUM_EQ(mode, MemLimit::HARD); |
| 286 | return limit(); |
| 287 | } |
| 288 | const std::string& label() const { return label_; } |
| 289 | |
| 290 | /// Returns the lowest limit for this tracker and its ancestors. Returns |
no outgoing calls