You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ga...@apache.org on 2024/03/08 02:13:43 UTC

(doris) branch master updated: [profile](pipelineX) Add lost metrics (#31964)

This is an automated email from the ASF dual-hosted git repository.

gabriellee pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new bff89ab58cc [profile](pipelineX) Add lost metrics (#31964)
bff89ab58cc is described below

commit bff89ab58cc010a42daebe752dbcf4bb1e07a52a
Author: Gabriel <ga...@gmail.com>
AuthorDate: Fri Mar 8 10:13:36 2024 +0800

    [profile](pipelineX) Add lost metrics (#31964)
---
 be/src/pipeline/exec/partition_sort_sink_operator.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/be/src/pipeline/exec/partition_sort_sink_operator.cpp b/be/src/pipeline/exec/partition_sort_sink_operator.cpp
index 7c2bf51ad56..2481302fd40 100644
--- a/be/src/pipeline/exec/partition_sort_sink_operator.cpp
+++ b/be/src/pipeline/exec/partition_sort_sink_operator.cpp
@@ -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)) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org