This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch opt_dict_perf
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/opt_dict_perf by this push:
new 44394ad9ff add analystime monitor
44394ad9ff is described below
commit 44394ad9ff8ff00b81e8caf9b33b0a87ef6ee4f7
Author: yiguolei <[email protected]>
AuthorDate: Wed Mar 15 19:33:40 2023 +0800
add analystime monitor
---
fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
index 78bb622e7f..909fa39e56 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/StmtExecutor.java
@@ -807,7 +807,12 @@ public class StmtExecutor implements ProfileWriter {
}
MetaLockUtils.readLockTables(tables);
try {
+ long startAnalysisTime = System.currentTimeMillis();
analyzeAndGenerateQueryPlan(tQueryOptions);
+ long endAnalysisTime = System.currentTimeMillis();
+ if (endAnalysisTime - startAnalysisTime > 10000) {
+ LOG.info("yyyyy {}", endAnalysisTime -
startAnalysisTime);
+ }
break;
} catch (MVSelectFailedException e) {
/*
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]