datapoint for best fork weight and slot in replay (#7066)

This commit is contained in:
sakridge
2019-11-20 17:26:52 -08:00
committed by GitHub
parent 100b9dd12a
commit e66b29943b

View File

@ -904,6 +904,11 @@ impl ReplayStage {
if child_stats.is_locked_out || !child_stats.vote_threshold { if child_stats.is_locked_out || !child_stats.vote_threshold {
continue; continue;
} }
datapoint_info!(
"replay_stage-pick_best_fork",
("slot", best_bank.slot(), i64),
("weight", child_stats.weight, f64),
);
inc_new_counter_info!("replay_stage-pick_best_fork-child", 1); inc_new_counter_info!("replay_stage-pick_best_fork-child", 1);
debug!("best bank found child: {}", child_stats.slot); debug!("best bank found child: {}", child_stats.slot);
vote = Some(((*child).clone(), child_stats.total_staked)); vote = Some(((*child).clone(), child_stats.total_staked));