line |
true |
false |
branch |
128
|
8 |
12 |
if (my(%params) = @_) |
130
|
8 |
8 |
if (ref $params{$coderef_param} eq 'CODE') |
152
|
8 |
123 |
unless (&blessed($arguments[0]) and $arguments[0]->isa('Timer::Milestones')) |
173
|
20 |
2 |
unless (exists $self->{'milestones'}) |
195
|
2 |
33 |
if ($self->{'timing_stopped'}) |
205
|
13 |
20 |
if (my $previous_milestone = $self->_end_previous_milestone) { } |
225
|
1 |
0 |
if (my $calling_subroutine = (caller 2)[3]) { } |
253
|
11 |
22 |
if $self->{'generated_report'} |
256
|
0 |
22 |
unless $self->{'milestones'} |
263
|
21 |
16 |
unless ($previous_milestone) |
274
|
16 |
21 |
if ($previous_milestone) |
279
|
3 |
13 |
if @function_calls |
289
|
6 |
31 |
if ($milestone->{'function_calls'}) |
298
|
18 |
4 |
if ($self->{'timing_stopped'}) |
305
|
3 |
15 |
if @function_calls |
334
|
14 |
26 |
unless ($function_call->{'summarise_calls'}) |
340
|
6 |
8 |
if (exists $function_call->{'argument_summary'}) |
356
|
3 |
23 |
unless ($element) |
369
|
13 |
13 |
if (exists $function_call->{'argument_summary'}) |
373
|
4 |
9 |
unless ($matching_arguments) |
404
|
39 |
67 |
if ($element->{'type'} eq 'time') { } |
|
16 |
51 |
elsif ($element->{'type'} eq 'milestone') { } |
|
34 |
17 |
elsif ($element->{'type'} eq 'interval') { } |
|
17 |
0 |
elsif ($element->{'type'} eq 'function_call') { } |
419
|
3 |
14 |
if ($element->{'call_count'}) |
426
|
8 |
9 |
if ($element->{'arguments_seen'}) |
429
|
3 |
7 |
if ($arguments->{'call_count'} > 1) |
450
|
56 |
68 |
if $unit_spec->{'max'} and $elapsed_time >= $unit_spec->{'max'} |
454
|
60 |
8 |
$unit_spec->{'transform'} ? : |
501
|
18 |
10 |
unless ($self->{'timing_stopped'}) |
520
|
13 |
10 |
if (my $report = $self->generate_final_report) |
536
|
30 |
21 |
if (my $previous_milestone = $self->{'milestones'}[-1]) |
558
|
15 |
1 |
eval {
do {
require Time::HiRes;
&Time::HiRes::time()
}
} ? : |
616
|
2 |
10 |
unless (defined &$orig_code) |
634
|
26 |
17 |
if ($args{'summarise_calls'}) |
639
|
19 |
24 |
if ($args{'summarise_arguments'}) |
646
|
1 |
42 |
if ($wantarray) { } |
|
1 |
41 |
elsif (defined $wantarray) { } |
658
|
1 |
42 |
if ($wantarray) { } |
|
1 |
41 |
elsif (defined $wantarray) { } |