LoadAvg(3)

πŸ“¦ version 0.03, in opensuse-leap 16.0

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 (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