blob: 871ece7a0ef64ec55e6e7bcd9b43b7e2b81bf5c5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
/// Functions for accessing system memory information.
#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;
}
|