retdec
Namespaces | Functions
memory.cpp File Reference

Memory utilities. More...

#include <cstddef>
#include "retdec/utils/memory.h"
#include "retdec/utils/os.h"
#include <sys/sysinfo.h>

Namespaces

 retdec
 
 retdec::utils
 

Functions

std::size_t retdec::utils::getTotalSystemMemory ()
 Returns the total size of system RAM (in bytes). More...
 
bool retdec::utils::limitSystemMemory (std::size_t limit)
 Limits system memory to the given size (in bytes). More...
 
bool retdec::utils::limitSystemMemoryToHalfOfTotalSystemMemory ()
 Limits system memory to half of the total memory. More...
 

Detailed Description

Memory utilities.