XComp commented on a change in pull request #13547:
URL: https://github.com/apache/flink/pull/13547#discussion_r506375917



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/memory/MemoryManager.java
##########
@@ -598,6 +598,15 @@ public long availableMemory() {
                return memoryBudget.getAvailableMemorySize();
        }
 
+       /**
+        * Returns the used amount of memory handled by this memory manager.
+        *
+        * @return The used amount of memory.
+        */
+       public long usedMemory() {
+               return memoryBudget.getUsedMemorySize();

Review comment:
       Good idea. I like it.




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

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


Reply via email to