7 #include "fwMemory/tools/MemoryMonitorTools.hpp" 10 #define MEMORYTOOLIMPL Win32MemoryMonitorTools 11 #include "fwMemory/tools/Win32MemoryMonitorTools.hpp" 12 #elif defined(__MACOSX__) 13 #define MEMORYTOOLIMPL DarwinMemoryMonitorTools 14 #include "fwMemory/tools/DarwinMemoryMonitorTools.hpp" 16 #define MEMORYTOOLIMPL PosixMemoryMonitorTools 17 #include "fwMemory/tools/PosixMemoryMonitorTools.hpp" 27 MemoryMonitorTools::MemoryMonitorTools()
33 MemoryMonitorTools::~MemoryMonitorTools()
39 std::uint64_t MemoryMonitorTools::estimateFreeMem()
41 return MEMORYTOOLIMPL::estimateFreeMem();
46 void MemoryMonitorTools::printProcessMemoryInformation()
48 MEMORYTOOLIMPL::printProcessMemoryInformation();
53 void MemoryMonitorTools::printSystemMemoryInformation()
55 MEMORYTOOLIMPL::printSystemMemoryInformation();
60 void MemoryMonitorTools::printMemoryInformation()
62 MEMORYTOOLIMPL::printMemoryInformation();
67 std::uint64_t MemoryMonitorTools::getTotalSystemMemory()
69 return MEMORYTOOLIMPL::getTotalSystemMemory();
74 std::uint64_t MemoryMonitorTools::getUsedSystemMemory()
76 return MEMORYTOOLIMPL::getUsedSystemMemory();
81 std::uint64_t MemoryMonitorTools::getFreeSystemMemory()
83 return MEMORYTOOLIMPL::getFreeSystemMemory();
88 std::uint64_t MemoryMonitorTools::getUsedProcessMemory()
90 return MEMORYTOOLIMPL::getUsedProcessMemory();
The namespace fwMemory contains tools to manage memory. Use for dump.