Octopussy::Stats(3)

πŸ“¦ version 1.0.6, in ubuntu jammy

✨ 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