Octopussy::Stats(3)
β¨ NAME β¨
Octopussy::Stats β the Octopussy System Stats module, bestie π
Like, this is the little Perl module that goes and peeks at what your machine is actually doing. CPU, memory, swap, load, events. The whole vibe check for your box π©Ίβ¨
π FUNCTIONS π
Okay so here's every function this module hands you, no skips, no cuts π
πΈ CPU_Info()
Returns the CPU Information π
That's it. That's the function. It just tells you about your CPU. Iconic of it honestly.
πΈ CPU_Usage()
Returns the CPU Usage (user/system/idle/wait in percent) π
So you get four numbers, in percentages, and they're the user / system / idle / wait breakdown. Slay.
πΈ Load()
Returns System Load (information from /proc/loadavg) π₯
It's pulling straight from /proc/loadavg, so if you've ever squinted at that file and gone "what is this", now you have a function. You're welcome bestie.
πΈ Mem_Total()
Returns the Total of Memory in MegaBytes (information from /proc/meminfo) π§ β¨
MegaBytes, capital B and capital M, that's the unit. And yes, it's reading from /proc/meminfo, not vibes.
πΈ Mem_Usage()
Returns the Memory usage in this format:
"$used M / $total M ($percent%)"
So like literally that string shape. $used M, a slash, $total M, and then the percent all cute in parens π
πΈ Swap_Usage()
Returns the Swap usage in this format:
"$used M / $total M ($percent%)"
Same format as the memory one, same energy, but for swap. Don't sleep on swap, it's lowkey doing the most when RAM gets stressed π
πΈ Partition_Logs
No description given, and I'm not about to make one up β the manpage just lists it and moves on. It's here, it exists, that's the whole tea π«
πΈ Events()
Returns Stats Events β
Events. Stats events specifically. Very demure, very mindful.
π AUTHOR π
Sebastien Thebert <octo.devel@gmail.com> π
That's the whole page, bestie β nothing dropped, nothing added, all facts intact π«Ά
Sign-off time π This lil beauty lives in the perl v5.22.2 docs and it's dated 2016-05-04 β she's been serving stats since way back and she's still that girl π
β¨
π¦ where this page comes from
- ubuntu jammy: octopussy 1.0.6-0ubuntu2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms