exfacts v0.1.3 ExFacts.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 ::
  %ExFacts.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(arg)
populate_info(data)
populate_info(map) :: %ExFacts.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 :: list) :: list
split_data(data, i)
split_data(original :: list, interval :: integer) :: list