line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package P9Y::ProcessTable::Table::Base; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:BBYRD'; # AUTHORITY |
4
|
|
|
|
|
|
|
our $VERSION = '1.06_01'; # VERSION |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
############################################################################# |
7
|
|
|
|
|
|
|
# Modules |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# use sanity; |
10
|
3
|
|
|
3
|
|
1380
|
use strict qw(subs vars); |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
104
|
|
11
|
3
|
|
|
3
|
|
12
|
no strict 'refs'; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
74
|
|
12
|
3
|
|
|
3
|
|
12
|
use warnings FATAL => 'all'; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
124
|
|
13
|
3
|
|
|
3
|
|
13
|
no warnings qw(uninitialized); |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
92
|
|
14
|
|
|
|
|
|
|
|
15
|
3
|
|
|
3
|
|
12
|
use Moo; |
|
3
|
|
|
|
|
3
|
|
|
3
|
|
|
|
|
18
|
|
16
|
|
|
|
|
|
|
|
17
|
3
|
|
|
3
|
|
797
|
use namespace::clean; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
24
|
|
18
|
3
|
|
|
3
|
|
824
|
no warnings 'uninitialized'; |
|
3
|
|
|
|
|
4
|
|
|
3
|
|
|
|
|
545
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
############################################################################# |
21
|
|
|
|
|
|
|
# Common Methods (may potentially be overloaded with OS-specific ones) |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub table { |
24
|
1
|
|
|
1
|
0
|
2
|
my $self = shift; |
25
|
1
|
|
|
|
|
7
|
return map { $self->process($_) } ($self->list); |
|
10
|
|
|
|
|
8874
|
|
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub process { |
29
|
13
|
|
|
13
|
0
|
30
|
my ($self, $pid) = @_; |
30
|
13
|
100
|
|
|
|
48
|
$pid = $$ if (@_ == 1); |
31
|
13
|
|
|
|
|
66
|
my $hash = $self->_process_hash($pid); |
32
|
13
|
100
|
66
|
|
|
122
|
return unless $hash && $hash->{pid}; |
33
|
|
|
|
|
|
|
|
34
|
12
|
|
|
|
|
17
|
$hash->{_pt_obj} = $self; |
35
|
12
|
|
|
|
|
301
|
return P9Y::ProcessTable::Process->new($hash); |
36
|
|
|
|
|
|
|
} |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
42; |