MCPcopy Create free account
hub / github.com/apache/impala / GetLowestLimit

Method GetLowestLimit

be/src/runtime/mem-tracker.cc:153–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153int64_t MemTracker::GetLowestLimit(MemLimit mode) const {
154 if (limit_trackers_.empty()) return -1;
155 int64_t min_limit = numeric_limits<int64_t>::max();
156 for (MemTracker* limit_tracker : limit_trackers_) {
157 DCHECK(limit_tracker->has_limit());
158 min_limit = min(min_limit, limit_tracker->GetLimit(mode));
159 }
160 return min_limit;
161}
162
163int64_t MemTracker::SpareCapacity(MemLimit mode) const {
164 int64_t result = numeric_limits<int64_t>::max();

Callers 6

PrepareMethod · 0.80
TESTFunction · 0.80
GetMaxReservationMethod · 0.80
InitChildTrackerMethod · 0.80
TEST_FFunction · 0.80

Calls 5

maxFunction · 0.85
minFunction · 0.85
GetLimitMethod · 0.80
emptyMethod · 0.45
has_limitMethod · 0.45

Tested by 2

TESTFunction · 0.64
TEST_FFunction · 0.64