More metrics to track memory usage (#3966)

automerge
This commit is contained in:
Pankaj Garg
2019-04-24 11:11:30 -07:00
committed by Grimes
parent 7710ef8b2b
commit 9c7ccc0e2b
2 changed files with 29 additions and 17 deletions

View File

@ -343,6 +343,12 @@ impl BankingStage {
break;
}
}
let num = buffered_packets
.iter()
.map(|(x, start, _)| x.packets.len().saturating_sub(*start))
.sum();
inc_new_counter_info!("banking_stage-total_buffered_packets", num);
}
}