blob: 3e6264c691b18c1a025a5fa1856920f1e6f5d237 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/// Functions for accessing system memory information.
#include <stdint.h>
#include <uv.h>
#include "nvim/os/os.h"
/// Get the total system physical memory in KiB.
uint64_t os_get_total_mem_kib(void)
{
// Convert bytes to KiB.
return uv_get_total_memory() / 1024;
}
|