[−][src]Function sys_metrics::host::get_host_info
pub fn get_host_info() -> Result<HostInfo, Error>
Get some basic HostInfo of the host.
On linux and macOS it will get the os_version
and hostname
from uname.
For the uptime
/loadavg
/memory
on linux it will get them from sysinfo.
But on macOS it will use the crate get_loadavg and get_memory and a special get_uptime function using an unsafe syscall.