xapian-core  1.4.27
Functions
freemem.h File Reference

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

+ This graph shows which files directly or indirectly include this file:

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.h.

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().