CppCommon
1.0.4.1
C++ Common Library
memory_memory.cpp
Memory management example
#include "
memory/memory.h
"
#include <iostream>
int
main(
int
argc,
char
** argv)
{
std::cout <<
"Total RAM: "
<<
CppCommon::Memory::RamTotal
() <<
" bytes"
<< std::endl;
std::cout <<
"Free RAM: "
<<
CppCommon::Memory::RamFree
() <<
" bytes"
<< std::endl;
return
0;
}
CppCommon::Memory::RamFree
static int64_t RamFree()
Free RAM in bytes.
Definition:
memory.cpp:59
CppCommon::Memory::RamTotal
static int64_t RamTotal()
Total RAM in bytes.
Definition:
memory.cpp:33
memory.h
Memory management definition.
Generated by
1.9.1