CPU(3)
π» CPU(3) β Sys::CPU, but make it group chat β¨
okay so bestie, welcome to the Sys::CPU page from the User Contributed Perl Documentation crew. We're talking CPU(3), and yes, it's giving βsmall module, big CPU-counting energy.β π
πΈ NAME πΈ
Sys::CPU β a Perl extension for getting CPU information. Currently only number of CPU's supported. That's literally what the NAME says, bestie, and I'm not gonna gaslight you about it. π«Ά
β¨ SYNOPSIS β¨
okay so the vibe-check code is literally this:
use Sys::CPU;
$number_of_cpus = Sys::CPU::cpu_count();
printf("I have %d CPU's\n",$number_of_cpus);
print " Speed : ",Sys::CPU::cpu_clock(),"\n";
print " Type : ",Sys::CPU::cpu_type(),"\n";
that's the whole synopsis, no cap. π
π¦ DESCRIPTION π¦
In responce to a post on perlmonks.org β yes, βresponceβ is the spelling from the original, bestie β this is a module for counting the number of CPU's on a system. Iconic origin story, honestly. π«Ά
Support has now also been added for type of CPU and clock speed. So it's not just a one-trick CPU-counter anymore β it's giving main character energy. π
While much of the code is from UNIX::Processors, win32 support has been added (but not tested).
β οΈ win32 support has been added, but it is not tested β the original says so, fr fr. Don't @ me. π
Version tea, in order:
v0.45β Corrected solaris support (Thanks Cloyce)v0.60β Added FreeBSD support (Thanks Johan & SREZIC)v0.61β Fix test numbering issue
π EXPORT π
None by default. That's it. No exports, no extra goodies, no cap. π
π AUTHOR π
Matt Sanford. That's the author, periodt. π
π MAINTENANCE π
Marc Koderer. He's on maintenance duty, bestie. π οΈ
π LICENSE π
Okay so the original page has the LICENSE heading and thenβ¦ literally nothing under it. No license text shown here. Not me staring at an empty section, but here we are. π
π SEE ALSO π
Go peek at perl(1) and sysconf(3) β those are the referenced besties. π
xoxo, your Sys::CPU hype girl π β this page is from perl v5.42.0, dated 2024-03-04, and that's the footer tea. π«Άβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Sys-CPU 0.61-bp160.1.11 Β· GPL-1.0+ or Artistic-1.0
- opensuse-leap 16.0: perl-Sys-CPU 0.61-bp160.1.11 Β· GPL-1.0+ or Artistic-1.0
- opensuse-leap 16.0: perl-Sys-CPU 0.61-bp160.1.11 Β· GPL-1.0+ or Artistic-1.0
- opensuse-leap 16.0: perl-Sys-CPU 0.61-bp160.1.11 Β· GPL-1.0+ or Artistic-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms