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

Method InitRootTracker

be/src/runtime/bufferpool/reservation-tracker.cc:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void ReservationTracker::InitRootTracker(
44 RuntimeProfile* profile, int64_t reservation_limit) {
45 lock_guard<SpinLock> l(lock_);
46 DCHECK(!initialized_);
47 parent_ = nullptr;
48 mem_tracker_ = nullptr;
49 reservation_limit_.Store(reservation_limit);
50 reservation_.Store(0);
51 used_reservation_.Store(0);
52 child_reservations_.Store(0);
53 initialized_ = true;
54
55 InitCounters(profile, reservation_limit);
56 COUNTER_SET(counters_.peak_reservation, 0);
57
58 CheckConsistency();
59}
60
61void ReservationTracker::InitChildTracker(RuntimeProfile* profile,
62 ReservationTracker* parent, MemTracker* mem_tracker, int64_t reservation_limit,

Callers 14

InitBufferPoolMethod · 0.80
InitRootReservationMethod · 0.80
InitPoolMethod · 0.80
TEST_FFunction · 0.80
SetUpMethod · 0.80
TEST_FFunction · 0.80
TestBufferAllocationMethod · 0.80
TestCleanPageLimitMethod · 0.80
TestEvictionPolicyMethod · 0.80
TestWriteErrorMethod · 0.80

Calls 1

StoreMethod · 0.45

Tested by 13

InitRootReservationMethod · 0.64
InitPoolMethod · 0.64
TEST_FFunction · 0.64
SetUpMethod · 0.64
TEST_FFunction · 0.64
TestBufferAllocationMethod · 0.64
TestCleanPageLimitMethod · 0.64
TestEvictionPolicyMethod · 0.64
TestWriteErrorMethod · 0.64