Skip to content

Commit

Permalink
chore: log memory reservations
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedld committed Sep 5, 2024
1 parent c6c7a73 commit d5a5f35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions datafusion/execution/src/memory_pool/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ impl<I: MemoryPool> MemoryPool for TrackConsumersPool<I> {
.and_modify(|bytes| {
bytes.fetch_add(additional as u64, Ordering::AcqRel);
});

println!("REPORT: {}", self.report_top(5));
}

fn shrink(&self, reservation: &MemoryReservation, shrink: usize) {
Expand Down Expand Up @@ -380,6 +382,8 @@ impl<I: MemoryPool> MemoryPool for TrackConsumersPool<I> {
.and_modify(|bytes| {
bytes.fetch_add(additional as u64, Ordering::AcqRel);
});
println!("REPORT: {}", self.report_top(5));

Ok(())
}

Expand Down

0 comments on commit d5a5f35

Please sign in to comment.