Skip to content

Commit

Permalink
fix: Memory profile not outputing data
Browse files Browse the repository at this point in the history
  • Loading branch information
rvql committed Sep 12, 2024
1 parent 80bcff4 commit 1c78046
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions agent/src/ebpf_dispatcher/memory_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ impl MemoryContext {
}
}

if !batch.is_empty() {
if let Err(e) = sender.send_all(&mut batch) {
warn!("output queue failed to send data: {e}");
batch.clear();
}
}

for pid in dead_pids {
self.processes.remove(&pid);
}
Expand Down

0 comments on commit 1c78046

Please sign in to comment.