NAME
Data::Collector::Info::CPU - Fetch machine CPU information
This info module fetches information about a machine's CPU using /proc/meminfo
. It will not work on Solaris or Windows.
It would be better to do it using a normalized module. Patches are welcome. :)
The keys this module takes in the registry are number_of_cpus, cpu_mhz, cpu_model and cpu_flags.
SUBROUTINES/METHODS
info_keys
Subclassing info_keys
from Data::Collector::Info to indicate which keys to register.
count
Returns the number of CPUs.
mhz
Returns the CPU MHz.
model
Returns the CPU model.
flags
Returns the CPU flags.
all
Runs all methods and returns their result in a unified hashref.
AUTHOR
Sawyer X, <xsawyerx at cpan.org>