NAME

Data::Collector::Info::CPU - Fetch machine CPU information

VERSION

version 0.08

DESCRIPTION

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@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Sawyer X.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.