« lib/Mojo/IOLoop/ReadWriteProcess/CGroup/v1/Freezer.pm
↑ Summary
lib/Mojo/IOLoop/ReadWriteProcess/CGroup/v1/Devices.pm »
| 1 | package Mojo::IOLoop::ReadWriteProcess::CGroup::v2::IO; | ||
| 2 | |||
| 3 | 15 | ▶ | use Mojo::Base -base; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 15 | ▶ | use constant { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 15 | STAT_INTERFACE => 'io.stat', | |
| 7 | WEIGHT_INTERFACE => 'io.weight', | ||
| 8 | MAX_INTERFACE => 'io.max', | ||
| 9 | 15 | }; | |
| 10 | |||
| 11 | 0 | ▶ | has cgroup => sub { Mojo::IOLoop::ReadWriteProcess::CGroup::v2->new }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 12 | |||
| 13 | 1 | ▶ | sub stat { shift->cgroup->_list(STAT_INTERFACE) } |
|
Subroutine
stat: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 14 | 2 | ▶ | sub weight { shift->cgroup->_setget(WEIGHT_INTERFACE, @_) } |
|
Subroutine
weight: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 15 | 2 | ▶ | sub max { shift->cgroup->_setget(MAX_INTERFACE, @_) } |
|
Subroutine
max: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 16 | |||
| 17 | 15 | 1; | |
| 18 | |||
| 19 | =encoding utf-8 | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Mojo::IOLoop::ReadWriteProcess::CGroup::v2::IO - CGroups v2 IO Controller | ||
| 24 | |||
| 25 | =head1 SYNOPSIS | ||
| 26 | |||
| 27 | use Mojo::IOLoop::ReadWriteProcess::CGroup::v2; | ||
| 28 | |||
| 29 | my $cgroup = Mojo::IOLoop::ReadWriteProcess::CGroup::v2->new( name => "test" ); | ||
| 30 | |||
| 31 | $cgroup->io->stat; | ||
| 32 | |||
| 33 | =head1 DESCRIPTION | ||
| 34 | |||
| 35 | This module uses features that are only available on Linux kernels. | ||
| 36 | |||
| 37 | =head1 METHODS | ||
| 38 | |||
| 39 | L<Mojo::IOLoop::ReadWriteProcess::CGroup::v2::IO> inherits all methods from L<Mojo::Base> and implements | ||
| 40 | the following new ones. | ||
| 41 | |||
| 42 | =head1 LICENSE | ||
| 43 | |||
| 44 | Copyright (C) Ettore Di Giacinto. | ||
| 45 | |||
| 46 | This library is free software; you can redistribute it and/or modify | ||
| 47 | it under the same terms as Perl itself. | ||
| 48 | |||
| 49 | =head1 AUTHOR | ||
| 50 | |||
| 51 | Ettore Di Giacinto E<lt>edigiacinto@suse.comE<gt> | ||
| 52 | |||
| 53 | =cut | ||