| blib/lib/DashProfiler/Core.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 24 | 39 | 61.5 |
| line | l | !l | condition |
|---|---|---|---|
| 631 | 9 | 1 | keys %{{} unless $$_{'Data'};} and return 1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 51 | 5 | 0 | 0 | $@ and not $@ =~ m[^Can't locate Hash/Util] |
| 184 | 0 | 0 | 12 | $profile_name and not ref $profile_name |
| 422 | 0 | 4 | 9 | $name and $name eq '*' |
| line | l | !l | condition |
|---|---|---|---|
| 36 | 0 | 5 | $ENV{'DASHPROFILER_CORE_DEBUG'} || $ENV{'DASHPROFILER_DEBUG'} || 0 |
| 183 | 12 | 0 | $opt_params ||= {} |
| 188 | 7 | 5 | our $opt_defaults ||= {'disabled', 0, 'sample_class', 'DashProfiler::Sample', 'dbi_profile_class', 'DBI::Profile', 'dbi_profile_args', {}, 'flush_interval', 0, 'flush_hook', undef, 'granularity', 0, 'period_exclusive', undef, 'period_summary', undef, 'period_strict_start', 1, 'period_strict_end', 0, 'profile_as_text_args', undef, 'extra_info', undef} |
| 297 | 0 | 6 | $count ||= 1000 |
| 420 | 21 | 34 | $name or 'main' |
| 453 | 0 | 17 | $$self{'profile_as_text_args'} || {} |
| 456 | 0 | 17 | $args{'path'} ||= [$$self{'profile_name'}] |
| 457 | 1 | 16 | $args{'format'} ||= "%1\$s: dur=%11\$f count=%10\$d (max=%14\$f avg=%2\$f)\n" |
| 458 | 1 | 16 | $args{'separator'} ||= '>' |
| 489 | 5 | 1 | $path ||= [] |
| 831 | 15 | 0 | $sample_class->can('new') || 'new' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 365 | 2 | 0 | 0 | defined $$handles{$_} or delete $$handles{$_} |
| 825 | 0 | 15 | 0 | $meta{'sample_class'} || $$self{'sample_class'} |