line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Tomcat::Connector::Statistics; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
54
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our @ATTR = qw(max_threads current_thread_count current_thread_busy max_processing_time |
7
|
|
|
|
|
|
|
processing_time request_count error_count bytes_received bytes_sent); |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
|
|
115
|
foreach my $attr ( @ATTR ) {{ |
10
|
1
|
|
|
1
|
|
4
|
no strict 'refs'; |
|
1
|
|
|
|
|
0
|
|
11
|
0
|
|
|
0
|
|
|
*{ __PACKAGE__ . "::$attr" } = sub { my $self = shift; return $self->{$attr} } |
|
0
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
12
|
|
|
|
|
|
|
}} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub new { |
15
|
0
|
|
|
0
|
1
|
|
my ( $class, %args ) = @_; |
16
|
|
|
|
|
|
|
|
17
|
0
|
|
|
|
|
|
my $self = bless {}, $class; |
18
|
0
|
|
|
|
|
|
$self->{$_} = $args{$_} for @ATTR; |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
return $self |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
__END__ |