carlvinhust2012 commented on code in PR #16354:
URL: https://github.com/apache/doris/pull/16354#discussion_r1093986866


##########
fe/fe-core/src/main/java/org/apache/doris/common/util/ProfileManager.java:
##########
@@ -90,10 +90,19 @@ public enum ProfileType {
                     START_TIME, END_TIME, TOTAL_TIME, QUERY_STATE, TRACE_ID));
 
     private class ProfileElement {
+        public ProfileElement(RuntimeProfile profile) {
+            this.profile = profile;
+        }
+
+        private final RuntimeProfile profile;
         public Map<String, String> infoStrings = Maps.newHashMap();
-        public String profileContent = "";
         public MultiProfileTreeBuilder builder = null;
         public String errMsg = "";
+
+        // lazy load profileContent cause sometimes profileContent is very 
large

Review Comment:
   ```suggestion
           // lazy load profileContent because sometimes profileContent is very 
large
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to