line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Mojo::IOLoop::ReadWriteProcess::CGroup::v2::IO; |
2
|
|
|
|
|
|
|
|
3
|
15
|
|
|
15
|
|
102
|
use Mojo::Base -base; |
|
15
|
|
|
|
|
30
|
|
|
15
|
|
|
|
|
92
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use constant { |
6
|
15
|
|
|
|
|
3630
|
STAT_INTERFACE => 'io.stat', |
7
|
|
|
|
|
|
|
WEIGHT_INTERFACE => 'io.weight', |
8
|
|
|
|
|
|
|
MAX_INTERFACE => 'io.max', |
9
|
15
|
|
|
15
|
|
2657
|
}; |
|
15
|
|
|
|
|
29
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has cgroup => sub { Mojo::IOLoop::ReadWriteProcess::CGroup::v2->new }; |
12
|
|
|
|
|
|
|
|
13
|
1
|
|
|
1
|
0
|
176
|
sub stat { shift->cgroup->_list(STAT_INTERFACE) } |
14
|
2
|
|
|
2
|
0
|
997
|
sub weight { shift->cgroup->_setget(WEIGHT_INTERFACE, @_) } |
15
|
2
|
|
|
2
|
0
|
11
|
sub max { shift->cgroup->_setget(MAX_INTERFACE, @_) } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
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 inherits all methods from L 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 Eedigiacinto@suse.comE |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |