Unix::Processors::Info - Interface to processor (CPU) information


Unix-Processors documentation Contained in the Unix-Processors distribution.

Index


Code Index:

NAME

Top

Unix::Processors::Info - Interface to processor (CPU) information

SYNOPSIS

Top

  use Unix::Processors;

  ...
  $aproc = $proc->processors[0];
      print ($aproc->id, $aproc->state, $aproc->clock);
  }

DESCRIPTION

Top

This package provides access to per-processor (CPU) information from the operating system in a OS independent manner.

id

Return the cpu number of this processor.

clock

Return the clock frequency in MHz.

state

Return the cpu state as "online", "offline", or "poweroff".

type

Return the cpu type.

DISTRIBUTION

Top

The latest version is available from CPAN and from http://www.veripool.org/.

Copyright 1999-2010 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0.

AUTHORS

Top

Wilson Snyder <wsnyder@wsnyder.org>

SEE ALSO

Top

Unix::Processors


Unix-Processors documentation Contained in the Unix-Processors distribution.

# Unix::Processors::Info
# See copyright, etc in below POD section.
######################################################################

package Unix::Processors::Info;

require DynaLoader;
@ISA = qw(DynaLoader);

use strict;
use vars qw($VERSION);

######################################################################
#### Configuration Section

$VERSION = '2.042';

######################################################################
#### Code

#It's all in C

######################################################################
#### Package return
1;