You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2026/01/05 08:39:38 UTC
(doris) 02/02: add scanner profile to level 1
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch tpc_preview4-external
in repository https://gitbox.apache.org/repos/asf/doris.git
commit d17de618c0ccb9df82808c53c6b512866ed38a38
Author: morningman <mo...@163.com>
AuthorDate: Sun Jan 4 23:38:46 2026 +0800
add scanner profile to level 1
---
be/src/io/cache/block_file_cache_profile.cpp | 2 +-
.../src/main/java/org/apache/doris/common/profile/RuntimeProfile.java | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/be/src/io/cache/block_file_cache_profile.cpp b/be/src/io/cache/block_file_cache_profile.cpp
index 6a9676fbeee..8d4fb2b736e 100644
--- a/be/src/io/cache/block_file_cache_profile.cpp
+++ b/be/src/io/cache/block_file_cache_profile.cpp
@@ -67,7 +67,7 @@ void FileCacheMetrics::update_metrics_callback() {
FileCacheProfileReporter::FileCacheProfileReporter(RuntimeProfile* profile) {
static const char* cache_profile = "FileCache";
- ADD_TIMER_WITH_LEVEL(profile, cache_profile, 2);
+ ADD_TIMER_WITH_LEVEL(profile, cache_profile, 1);
num_local_io_total =
ADD_CHILD_COUNTER_WITH_LEVEL(profile, "NumLocalIOTotal", TUnit::UNIT, cache_profile, 1);
num_remote_io_total = ADD_CHILD_COUNTER_WITH_LEVEL(profile, "NumRemoteIOTotal", TUnit::UNIT,
diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/profile/RuntimeProfile.java b/fe/fe-core/src/main/java/org/apache/doris/common/profile/RuntimeProfile.java
index 4067cd3e1fb..47844cbf491 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/common/profile/RuntimeProfile.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/common/profile/RuntimeProfile.java
@@ -496,7 +496,8 @@ public class RuntimeProfile {
}
boolean shouldBeIncluded() {
- if (Objects.equals(this.name, "CommonCounters") || Objects.equals(this.name, "CustomCounters")) {
+ if (Objects.equals(this.name, "CommonCounters") || Objects.equals(this.name, "CustomCounters")
+ || Objects.equals(this.name, "Scanner")) {
return true;
} else {
return this.name.matches(".*Pipeline.*") || this.name.matches(".*_OPERATOR.*");
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org