| line |
true |
false |
branch |
|
160
|
9 |
16 |
if (my(%params) = @_) |
|
162
|
9 |
9 |
if (ref $params{$coderef_param} eq 'CODE') |
|
184
|
14 |
150 |
unless (&blessed($arguments[0]) and $arguments[0]->isa('Timer::Milestones')) |
|
205
|
25 |
3 |
unless (exists $self->{'milestones'}) |
|
227
|
2 |
39 |
if ($self->{'timing_stopped'}) |
|
237
|
14 |
25 |
if (my $previous_milestone = $self->_end_previous_milestone) { } |
|
257
|
1 |
0 |
if (my $calling_subroutine = (caller 2)[3]) { } |
|
285
|
14 |
28 |
if $self->{'generated_report'} |
|
288
|
0 |
28 |
unless $self->{'milestones'} |
|
295
|
27 |
18 |
unless ($previous_milestone) |
|
306
|
18 |
27 |
if ($previous_milestone) |
|
311
|
5 |
13 |
if @function_calls |
|
321
|
12 |
33 |
if ($milestone->{'function_calls'}) |
|
330
|
23 |
5 |
if ($self->{'timing_stopped'}) |
|
337
|
7 |
16 |
if @function_calls |
|
364
|
41 |
16 |
unless (defined $function_name) |
|
370
|
25 |
32 |
unless ($function_call->{'summarise_calls'}) |
|
376
|
8 |
17 |
if (exists $function_call->{'argument_summary'}) |
|
391
|
5 |
27 |
unless ($element) |
|
404
|
13 |
19 |
if (exists $function_call->{'argument_summary'}) |
|
408
|
4 |
9 |
unless ($matching_arguments) |
|
443
|
50 |
89 |
if ($element->{'type'} eq 'time') { } |
|
|
18 |
71 |
elsif ($element->{'type'} eq 'milestone') { } |
|
|
41 |
30 |
elsif ($element->{'type'} eq 'interval') { } |
|
|
30 |
0 |
elsif ($element->{'type'} eq 'function_call') { } |
|
458
|
5 |
25 |
if ($element->{'call_count'}) |
|
467
|
10 |
20 |
if ($element->{'arguments_seen'}) |
|
470
|
3 |
9 |
if ($arguments->{'call_count'} > 1) |
|
486
|
71 |
80 |
if (ref $line eq 'HASH') |
|
501
|
70 |
78 |
if (ref $line eq 'HASH') |
|
523
|
56 |
88 |
if $unit_spec->{'max'} and $elapsed_time >= $unit_spec->{'max'} |
|
527
|
80 |
8 |
$unit_spec->{'transform'} ? : |
|
582
|
86 |
1 |
if ($time =~ /$re_primary_quantity_and_unit/x) { } |
|
587
|
74 |
98 |
if $value_length > $max_length{$label} |
|
603
|
35 |
51 |
if length $time > $max_length{'total'} |
|
623
|
23 |
13 |
unless ($self->{'timing_stopped'}) |
|
645
|
5 |
23 |
if ($self->{'wrapped_functions'}) |
|
654
|
16 |
12 |
if ($report) |
|
670
|
36 |
26 |
if (my $previous_milestone = $self->{'milestones'}[-1]) |
|
692
|
20 |
1 |
eval {
do {
require Time::HiRes;
&Time::HiRes::time()
}
} ? : |
|
789
|
2 |
16 |
if (ref $function_name_or_coderef eq 'CODE') { } |
|
798
|
4 |
12 |
unless ($function_name =~ /::/) |
|
808
|
2 |
14 |
unless (defined &$orig_code) |
|
828
|
29 |
27 |
if ($args{'summarise_calls'}) |
|
833
|
21 |
35 |
if ($args{'summarise_arguments'}) |
|
840
|
1 |
55 |
if ($wantarray) { } |
|
|
8 |
47 |
elsif (defined $wantarray) { } |
|
852
|
1 |
55 |
if ($wantarray) { } |
|
|
8 |
47 |
elsif (defined $wantarray) { } |
|
862
|
14 |
2 |
if ($modify_symbol_table) |