yiguolei commented on code in PR #39448: URL: https://github.com/apache/doris/pull/39448#discussion_r1721420970
########## fe/fe-core/src/main/java/org/apache/doris/common/profile/Profile.java: ########## @@ -625,4 +630,20 @@ public void deleteFromStorage() { public long getProfileSize() { return this.profileSize; } + + public boolean shouldBeRemoveFromMemory() { + if (!this.isQueryFinished) { + return false; + } + + if (this.profileHasBeenStored()) { + return false; + } + + if (this.queryFinishTimestamp - this.summaryProfile.getQueryBeginTime() >= autoProfileDurationMs) { Review Comment: 为什么有这个条件? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org