Mojo::...v2::CPU(3pm)

✨ NAME ✨

Mojo::IOLoop::ReadWriteProcess::CGroup::v2::CPU β€” the CGroups v2 CPU Controller πŸ’… bestie, this is the whole thing, and it's a bop. It's part of the User Contributed Perl Documentation, and honestly? Queen behavior.


πŸŽ€ SYNOPSIS πŸŽ€

okay so here's the vibe, copy-paste it and go:

use Mojo::IOLoop::ReadWriteProcess::CGroup::v2;

my $cgroup = Mojo::IOLoop::ReadWriteProcess::CGroup::v2->new( name => "test" );

$cgroup->cpu->stat;

look at her. name => "test" because we're keeping it cute and simple, then $cgroup->cpu->stat to pull the stats. iconic. no cap. πŸ¦‹


🌸 DESCRIPTION 🌸

This module uses features that are only available on Linux kernels. 🐧✨

bestie I'm gonna hold your hand when I say this: if you're not on a Linux kernel, this is not it. it's giving "wrong OS". fr fr. πŸ™ˆ

πŸ‘‘ METHODS πŸ‘‘

Mojo::IOLoop::ReadWriteProcess::CGroup::v2::CPU inherits all methods from Mojo::Base and implements the following new ones.

So like, all the Mojo::Base family methods? yours. automatically. plus the new ones this module brings to the table. main character energy all around. πŸ’œ


πŸ“œ LICENSE πŸ“œ

Copyright (C) Ettore Di Giacinto.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. 🫢 (yes bestie, go off, remix it, the terms are the Perl ones.)


πŸ’– AUTHOR πŸ’–

Ettore Di Giacinto <edigiacinto@suse.com>


and that's the whole page!! πŸŒˆπŸ’–βœ¨ This was perl v5.42.0, dated 2025-07-25, and it's the Mojo::...v2::CPU(3pm) manual page β€” slay, go read it again, iykyk πŸŽ€πŸ’…πŸŒ·

πŸ“¦ where this page comes from