retdec
memory.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_UTILS_MEMORY_H
8 #define RETDEC_UTILS_MEMORY_H
9 
10 #include <cstdlib>
11 
12 namespace retdec {
13 namespace utils {
14 
15 std::size_t getTotalSystemMemory();
16 bool limitSystemMemory(std::size_t limit);
18 
19 } // namespace utils
20 } // namespace retdec
21 
22 #endif
std::size_t getTotalSystemMemory()
Returns the total size of system RAM (in bytes).
Definition: memory.cpp:175
bool limitSystemMemoryToHalfOfTotalSystemMemory()
Limits system memory to half of the total memory.
Definition: memory.cpp:216
bool limitSystemMemory(std::size_t limit)
Limits system memory to the given size (in bytes).
Definition: memory.cpp:197
Definition: archive_wrapper.h:19