blib/lib/Timer/Milestones.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 30 | 43 | 69.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
183 | 13 | 1 | 146 | &blessed($arguments[0]) and $arguments[0]->isa('Timer::Milestones') |
482 | 6 | 81 | 56 | $unit_spec->{'max'} and $elapsed_time >= $unit_spec->{'max'} |
line | l | !l | condition |
---|---|---|---|
404 | 11 | 2 | $element->{'arguments_seen'} ||= [] |
431 | 22 | 5 | $total_elapsed_time ||= 1e-06 |
579 | 35 | 25 | $self->{'milestones'} ||= [] |
730 | 44 | 12 | $self->{'milestones'}[-1]{'function_calls'} ||= [] |
779 | 7 | 7 | $self->{'wrapped_functions'} ||= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
155 | 0 | 24 | 0 | ref $invocant || $invocant |
166 | 4 | 20 | 0 | $self->{'get_time'} ||= $self->_default_get_time |
167 | 4 | 20 | 0 | $self->{'notify_report'} ||= $self->_default_notify_report |
186 | 11 | 3 | 0 | $singleton ||= 'Timer::Milestones'->new |
232 | 37 | 1 | 0 | $milestone_name || $self->_milestone_name |
363 | 16 | 41 | 0 | $function_call->{'report_name_as'} // $function_call->{'function_name'} |
565 | 15 | 0 | 0 | $self->{'notify_report'} ||= $self->_default_notify_report |
595 | 175 | 0 | 0 | $self->{'get_time'} ||= $self->_default_get_time |
709 | 0 | 4 | 0 | $args{'report_name_as'} ||= $function_name |