ExFacts v0.1.5 ExFacts.System.CPU

Handles all logic with regards to collecting metrics on the CPUs of the host. Returns a ExFactsCPU.InfoStat populated struct.

Summary

Functions

Returns the integer number of processors that on the host. Currently it relies on a call to the the system utility nproc, which means this function will only on Unix or Unix like systems

Functions

counts()
counts() :: integer

Returns the integer number of processors that on the host. Currently it relies on a call to the the system utility nproc, which means this function will only on Unix or Unix like systems.

cpu_info()
cpu_info ::
  {atom, [%ExFacts.System.CPU.InfoStat{cache_size: term, core_id: term, cores: term, cpu: term, family: term, flags: term, mhz: term, microcode: term, model: term, model_name: term, physical_id: term, stepping: term, vendor_id: term}]} |
  binary
finish_info(data)
finish_info(map) :: map
flatten_info(list, m \\ %{})
flatten_info(list, map) :: map
parse_info(in_data)
populate_info(data)
populate_info(map) :: %ExFacts.System.CPU.InfoStat{cache_size: term, core_id: term, cores: term, cpu: term, family: term, flags: term, mhz: term, microcode: term, model: term, model_name: term, physical_id: term, stepping: term, vendor_id: term}
split_data(data)
split_data(original :: []) :: []
split_data(data, i)
split_data(original :: list, interval :: integer) :: list