[profile](pipelineX) Add lost metrics (#31964)

This commit is contained in:
Gabriel
2024-03-08 10:13:36 +08:00
committed by yiguolei
parent 4bfecac08a
commit f968d96545

View File

@ -30,6 +30,7 @@ OperatorPtr PartitionSortSinkOperatorBuilder::build_operator() {
Status PartitionSortSinkLocalState::init(RuntimeState* state, LocalSinkStateInfo& info) {
RETURN_IF_ERROR(PipelineXSinkLocalState<PartitionSortNodeSharedState>::init(state, info));
SCOPED_TIMER(exec_time_counter());
SCOPED_TIMER(_open_timer);
auto& p = _parent->cast<PartitionSortSinkOperatorX>();
RETURN_IF_ERROR(p._vsort_exec_exprs.clone(state, _vsort_exec_exprs));
_partition_expr_ctxs.resize(p._partition_expr_ctxs.size());
@ -100,6 +101,7 @@ Status PartitionSortSinkOperatorX::sink(RuntimeState* state, vectorized::Block*
auto& local_state = get_local_state(state);
auto current_rows = input_block->rows();
SCOPED_TIMER(local_state.exec_time_counter());
COUNTER_UPDATE(local_state.rows_input_counter(), (int64_t)input_block->rows());
if (current_rows > 0) {
local_state.child_input_rows = local_state.child_input_rows + current_rows;
if (UNLIKELY(_partition_exprs_num == 0)) {