blib/lib/Devel/NYTProf/ReadStream.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 14 | 14 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 5 | 5 | 100.0 |
pod | 1 | 1 | 100.0 |
total | 20 | 20 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Devel::NYTProf::ReadStream; | ||||||
2 | |||||||
3 | 1 | 1 | 8398 | use warnings; | |||
1 | 3 | ||||||
1 | 43 | ||||||
4 | 1 | 1 | 6 | use strict; | |||
1 | 2 | ||||||
1 | 46 | ||||||
5 | |||||||
6 | our $VERSION = '6.13_001'; | ||||||
7 | |||||||
8 | 1 | 1 | 6 | use base 'Exporter'; | |||
1 | 1 | ||||||
1 | 108 | ||||||
9 | our @EXPORT_OK = qw( | ||||||
10 | for_chunks | ||||||
11 | ); | ||||||
12 | |||||||
13 | 1 | 1 | 6 | use Devel::NYTProf::Data; | |||
1 | 3 | ||||||
1 | 98 | ||||||
14 | |||||||
15 | sub for_chunks (&%) { | ||||||
16 | 1 | 1 | 1 | 22711 | my($cb, %opts) = @_; | ||
17 | 1 | 77 | Devel::NYTProf::Data->new( { | ||||
18 | %opts, | ||||||
19 | callback => $cb, | ||||||
20 | }); | ||||||
21 | } | ||||||
22 | |||||||
23 | 1; | ||||||
24 | |||||||
25 | __END__ |