| 1 | package Devel::Monitor::TraceItem; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 155 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 6 | 155 | my ($class, $varRef, $source) = @_; | |||||||||
| 7 | 155 | my $self = {}; | |||||||||
| 8 | 155 | bless($self => $class); | |||||||||
| 9 | 155 | $self->{_varRef} = $varRef; | |||||||||
| 10 | 155 | $self->{_source} = $source; | |||||||||
| 11 | 155 | return $self; | |||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | 184 | ▶ | sub getVarRef { return shift->{_varRef}; } | ||||||||
|
Subroutine
getVarRef: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 15 | 236 | ▶ | sub getSource { | ||||||||
|
Subroutine
getSource: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||
| 16 | 236 | my $self = shift; | |||||||||
| 17 | 236 | ▶ | if ($self->{_source}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 18 | 216 | return $self->{_source}; | |||||||||
| 19 | } else { | ||||||||||
| 20 | 20 | return ''; | |||||||||
| 21 | } | ||||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 1 | 1; | |||||||||