xy720 commented on a change in pull request #7030:
URL: https://github.com/apache/incubator-doris/pull/7030#discussion_r747345534



##########
File path: be/src/runtime/query_statistics.h
##########
@@ -55,21 +79,12 @@ class QueryStatistics {
         scan_bytes = 0;
         cpu_ms = 0;
         returned_rows = 0;
+        nodes_statistics_map.clear();

Review comment:
       Now the clearNodeStatistics() cleans up all newly allocated memory.

##########
File path: be/src/runtime/query_statistics.cpp
##########
@@ -19,6 +19,54 @@
 
 namespace doris {
 
+void NodeStatistics::merge(const NodeStatistics& other) {
+    peak_memory_bytes += other.peak_memory_bytes;
+}
+
+void NodeStatistics::to_pb(PNodeStatistics* nodeStatistics) {

Review comment:
       done

##########
File path: fe/fe-core/src/main/java/org/apache/doris/plugin/AuditEvent.java
##########
@@ -79,6 +83,8 @@
     public String stmt = "";
     @AuditField(value = "CpuTimeMS")
     public long cpuTimeMs = -1;
+    @AuditField(value = "PeakMemory")

Review comment:
       done




-- 
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