[fix](profile) fix profile TotalTime is 0ns when pipeline (#28048)

* [fix](profile) fix profile TotalTime is 0ns when pipeline

Signed-off-by: nextdreamblue <zxw520blue1@163.com>

* fix

Signed-off-by: nextdreamblue <zxw520blue1@163.com>

---------

Signed-off-by: nextdreamblue <zxw520blue1@163.com>
This commit is contained in:
xueweizhang
2023-12-07 10:30:41 +08:00
committed by GitHub
parent 00bcf0d762
commit 6f89fae22c

View File

@ -879,6 +879,8 @@ void PipelineFragmentContext::_close_fragment_instance() {
}
Defer defer_op {[&]() { _is_fragment_instance_closed = true; }};
_runtime_profile->total_time_counter()->update(_fragment_watcher.elapsed_time());
_runtime_state->runtime_profile()->total_time_counter()->update(
_fragment_watcher.elapsed_time());
static_cast<void>(send_report(true));
// all submitted tasks done
_exec_env->fragment_mgr()->remove_pipeline_context(shared_from_this());