@@ -284,10 +284,10 @@ public class SummaryProfile {
284284 private long nereidsLockTableFinishTime = -1 ;
285285
286286 @ SerializedName (value = "memoryLimit" )
287- private long memoryLimit = 0 ;
287+ private int memoryLimit = 0 ;
288288
289289 @ SerializedName (value = "cpuShare" )
290- private long cpuShare = - 1 ;
290+ private int cpuShare = 0 ;
291291
292292 @ SerializedName (value = "enableMemoryOvercommit" )
293293 private long enableMemoryOvercommit = 0 ;
@@ -585,6 +585,8 @@ private void updateExecutionSummaryProfile() {
585585 RuntimeProfile .printCounter (queryWriteResultConsumeTime , TUnit .TIME_MS ));
586586 executionSummaryProfile .addInfoString (CPU_SHARE ,
587587 RuntimeProfile .printCounter (cpuShare , TUnit .DOUBLE_VALUE ));
588+ executionSummaryProfile .addInfoString (MEMORY_LIMIT ,
589+ RuntimeProfile .printCounter (memoryLimit , TUnit .DOUBLE_VALUE ));
588590 setTransactionSummary ();
589591
590592 if (Config .isCloudMode ()) {
@@ -658,10 +660,14 @@ public void setNereidsLockTableFinishTime(long lockTableFinishTime) {
658660 this .nereidsLockTableFinishTime = lockTableFinishTime ;
659661 }
660662
661- public void setCpuShare (long cpuShare ) {
663+ public void setCpuShare (int cpuShare ) {
662664 this .cpuShare = cpuShare ;
663665 }
664666
667+ public void setMemoryLimit (int memoryLimit ) {
668+ this .memoryLimit = memoryLimit ;
669+ }
670+
665671 public void setNereidsCollectTablePartitionFinishTime (long collectTablePartitionFinishTime ) {
666672 this .nereidsCollectTablePartitionFinishTime = collectTablePartitionFinishTime ;
667673 }
0 commit comments