fw4spl
Win32MemoryMonitorTools.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWMEMORY_TOOLS_WIN32MEMORYMONITORTOOLS_HPP__
8 #define __FWMEMORY_TOOLS_WIN32MEMORYMONITORTOOLS_HPP__
9 
10 #ifdef _WIN32
11 
12 #include "fwMemory/config.hpp"
13 
14 #include <cstdint>
15 
16 namespace fwMemory
17 {
18 namespace tools
19 {
20 
21 class FWMEMORY_CLASS_API Win32MemoryMonitorTools
22 {
23 
24 public:
25 
26  FWMEMORY_API Win32MemoryMonitorTools();
27 
28  FWMEMORY_API ~Win32MemoryMonitorTools();
29 
30  FWMEMORY_API static std::uint64_t estimateFreeMem();
31 
32  FWMEMORY_API static void printProcessMemoryInformation();
33 
34  FWMEMORY_API static void printSystemMemoryInformation();
35 
36  FWMEMORY_API static void printMemoryInformation();
37 
38  FWMEMORY_API static std::uint64_t getTotalSystemMemory();
39 
40  FWMEMORY_API static std::uint64_t getUsedSystemMemory();
41 
42  FWMEMORY_API static std::uint64_t getFreeSystemMemory();
43 
44  FWMEMORY_API static std::uint64_t getUsedProcessMemory();
45 
46 };
47 
48 } // namespace tools
49 } // namespace fwMemory
50 
51 #endif
52 
53 #endif // __FWMEMORY_TOOLS_WIN32MEMORYMONITORTOOLS_HPP__
The namespace fwMemory contains tools to manage memory. Use for dump.
Definition: SReader.hpp:20