logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Authors

       Wilson Snyder <wsnyder@wsnyder.org>

Description

       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

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

       Copyright  1999-2017  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.

Name

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

See Also

       Unix::Processors

perl v5.40.0                                       2024-10-20                              Processors::Info(3pm)

Synopsis

         use Unix::Processors;

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

See Also