Skip to content

Commit 1c78046

Browse files
committed
fix: Memory profile not outputing data
1 parent 80bcff4 commit 1c78046

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

agent/src/ebpf_dispatcher/memory_profile.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,13 @@ impl MemoryContext {
231231
}
232232
}
233233

234+
if !batch.is_empty() {
235+
if let Err(e) = sender.send_all(&mut batch) {
236+
warn!("output queue failed to send data: {e}");
237+
batch.clear();
238+
}
239+
}
240+
234241
for pid in dead_pids {
235242
self.processes.remove(&pid);
236243
}

0 commit comments

Comments
 (0)