szaszm commented on code in PR #2133:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2133#discussion_r3131313472
##########
behave_framework/src/minifi_test_framework/containers/container_linux.py:
##########
@@ -479,3 +484,11 @@ def directory_contains_file_with_minimum_size(self,
directory_path: str, expecte
return True
return False
+
+ def get_memory_usage(self) -> int | None:
+ exit_code, output = self.exec_run(["awk", "/VmRSS.*kB/ { printf
\"%d\", $2 }", "/proc/1/status"])
Review Comment:
I think this only counts the main container process, not any child
processes. Is this intentional?
--
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]