You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2021/05/10 13:19:27 UTC
[GitHub] [nifi-minifi-cpp] adamdebreceni commented on a change in pull request #1066: MINIFICPP-1532: Create a processor to capture resource consumption me…
adamdebreceni commented on a change in pull request #1066:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1066#discussion_r629351522
##########
File path: libminifi/test/unit/MemoryUsageTest.cpp
##########
@@ -47,3 +47,16 @@ TEST_CASE("Test new and legacy total system memory query equivalency") {
REQUIRE(GetTotalMemoryLegacy() == utils::OsUtils::getSystemTotalPhysicalMemory());
}
#endif
+
+
+#ifdef WIN32
+TEST_CASE("Test Paging file size", "[testpagingfile]") {
+ constexpr bool cout_enabled = true;
+ const auto total_paging_file_size = utils::OsUtils::getTotalPagingFileSize();
+
+ if (cout_enabled) {
+ std::cout << "Total Paging file size: " << total_paging_file_size << " bytes" << std::endl;
Review comment:
why not use the logging framework?
--
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:
users@infra.apache.org