| 1 | package Devel::StatProfiler::SectionGuard; | ||
| 2 | 1 | ▶ | use 5.12.0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 6 | 2 | my $class = shift; | |
| 7 | 2 | my $self = bless({@_} => $class); | |
| 8 | 2 | Devel::StatProfiler::start_section($self->{section_name}); | |
| 9 | 2 | return $self; | |
| 10 | } | ||
| 11 | |||
| 12 | 0 | ▶ | sub section_name { $_[0]->{section_name} } |
|
Subroutine
section_name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 13 | |||
| 14 | 2 | ▶ | sub DESTROY { |
|
Subroutine
DESTROY: called CC=1 SCAR=0.0
| |||
| 15 | 2 | my $self = shift; | |
| 16 | 2 | Devel::StatProfiler::end_section($self->{section_name}); | |
| 17 | } | ||
| 18 | |||
| 19 | 1 | 1; | |
| 20 | |||
| 21 | __END__ | ||