LoadAvg(3)
okay so welcome to LoadAvg(3), bestie β this is the page from the User Contributed Perl Documentation section, and itβs all about Sys::LoadAvg. Itβs giving βlet me check your system CPU load averagesβ energy, and honestly? iconic. π
β¨
πΈ NAME πΈ
Sys::LoadAvg β a Perl extension for accessing system CPU load averages. Thatβs the whole name-and-one-liner situation. No cap. π«Ά
β¨ SYNOPSIS β¨
Hereβs the group-chat-ready code, exactly how youβd type it:
use Sys::LoadAvg qw( loadavg );
my @load = loadavg();
print $load[LOADAVG_1MIN], $/;
print $load[LOADAVG_5MIN], $/;
print $load[LOADAVG_15MIN], $/;
So yeah: you use Sys::LoadAvg qw( loadavg );, call loadavg(), stash the result in my @load, then print the values at the LOADAVG_1MIN, LOADAVG_5MIN, and LOADAVG_15MIN indexes. Slay. π
π DESCRIPTION π
This module is for accessing System load averages. Thatβs the vibe: load averages, but from Perl. Lowkey essential, highkey useful. πΈ
π EXPORT π
By default, the only exports are the constants LOADAVG_1MIN, LOADAVG_5MIN, and LOADAVG_15MIN. So those three are your default besties. π
The loadavg() sub can be explicitly exported if desired β so if you want it in your namespace, thatβs the move. Periodt.
π«Ά AUTHOR π«Ά
Jeremy Madea <jeremy@cpan.org> β thatβs the author, bestie. Say hi, he made this. π
π COPYRIGHT AND LICENSE π
Copyright (C) 2002-2012 by Jeremy Madea β periodt. π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available. Thatβs the legal tea, fr fr. π
π SEE ALSO π
perl β thatβs it. The see-also is literally perl. Go read your Perl docs, bestie. π
okay thatβs the whole page! Itβs from perl v5.42.0, dated 2024-03-04, and the page is LoadAvg(3) β mwah πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Sys-LoadAvg 0.03-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Sys-LoadAvg 0.03-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Sys-LoadAvg 0.03-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Sys-LoadAvg 0.03-bp160.1.12 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms