xapian-core  1.4.25
Functions
freemem.cc File Reference

determine how much free physical memory there is. More...

#include <config.h>
#include "freemem.h"
#include <sys/types.h>
#include "safeunistd.h"
+ Include dependency graph for freemem.cc:

Go to the source code of this file.

Functions

long long get_free_physical_memory ()
 Determine how much free physical memory there is. More...
 
long long get_total_physical_memory ()
 Determine how much physical memory there is. More...
 

Detailed Description

determine how much free physical memory there is.

Definition in file freemem.cc.

Function Documentation

◆ get_free_physical_memory()

long long get_free_physical_memory ( )

Determine how much free physical memory there is.

Returns the amount of free physical memory, in bytes, or -1 if this isn't known.

Definition at line 59 of file freemem.cc.

◆ get_total_physical_memory()

long long get_total_physical_memory ( )

Determine how much physical memory there is.

Returns the amount of physical memory, in bytes, or -1 if this isn't known.

Definition at line 115 of file freemem.cc.

Referenced by PerfTestLogger::open().