line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package KiokuDB::LinkChecker::Results; |
4
|
2
|
|
|
2
|
|
8
|
use Moose; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
9
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
10491
|
use Set::Object; |
|
2
|
|
|
|
|
11838
|
|
|
2
|
|
|
|
|
82
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
16
|
use namespace::clean -except => 'meta'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
29
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# Set::Object of 1 million IDs is roughly 100mb of memory == 100 bytes per ID |
11
|
|
|
|
|
|
|
# no need to scale anything more, if you have that many objects you should |
12
|
|
|
|
|
|
|
# probably write your own tool |
13
|
|
|
|
|
|
|
has [qw(seen root referenced unreferenced missing broken)] => ( |
14
|
|
|
|
|
|
|
isa => "Set::Object", |
15
|
|
|
|
|
|
|
is => "ro", |
16
|
|
|
|
|
|
|
default => sub { Set::Object->new }, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__PACKAGE__ |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |