#include #include #include int main(int argc, char **argv){ Util::redirectLogsIfNeeded(); if (argc < 1){ FAIL_MSG("Usage: %s MEMORY_PAGE_NAME", argv[0]); return 1; } IPC::sharedPage f(argv[1], 0, false, false); const Util::RelAccX A(f.mapped, false); while (true){ if (A.isReady()){ std::cout << A.toPrettyString() << std::endl; }else{ std::cout << "Memory structure " << argv[1] << " is not ready" << std::endl; } Util::sleep(10); } }