Skip to content

Commit d17de61

Browse files
committed
add scanner profile to level 1
1 parent 726ca90 commit d17de61

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

be/src/io/cache/block_file_cache_profile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void FileCacheMetrics::update_metrics_callback() {
6767

6868
FileCacheProfileReporter::FileCacheProfileReporter(RuntimeProfile* profile) {
6969
static const char* cache_profile = "FileCache";
70-
ADD_TIMER_WITH_LEVEL(profile, cache_profile, 2);
70+
ADD_TIMER_WITH_LEVEL(profile, cache_profile, 1);
7171
num_local_io_total =
7272
ADD_CHILD_COUNTER_WITH_LEVEL(profile, "NumLocalIOTotal", TUnit::UNIT, cache_profile, 1);
7373
num_remote_io_total = ADD_CHILD_COUNTER_WITH_LEVEL(profile, "NumRemoteIOTotal", TUnit::UNIT,

fe/fe-core/src/main/java/org/apache/doris/common/profile/RuntimeProfile.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,8 @@ public String toString() {
496496
}
497497

498498
boolean shouldBeIncluded() {
499-
if (Objects.equals(this.name, "CommonCounters") || Objects.equals(this.name, "CustomCounters")) {
499+
if (Objects.equals(this.name, "CommonCounters") || Objects.equals(this.name, "CustomCounters")
500+
|| Objects.equals(this.name, "Scanner")) {
500501
return true;
501502
} else {
502503
return this.name.matches(".*Pipeline.*") || this.name.matches(".*_OPERATOR.*");

0 commit comments

Comments
 (0)