| 1 | package Devel::Agent::AwareRole; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use Modern::Perl; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use Role::Tiny; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | require Devel::Agent; | |||||||||
| 6 | 1 | our $VERSION=$Devel::Agent::VERSION; | |||||||||
| 7 | |||||||||||
| 8 | 1 | require Scalar::Util; | |||||||||
| 9 | |||||||||||
| 10 | 0 | ▶ | sub ___db_stack_filter { | ||||||||
|
Subroutine
___db_stack_filter: not called CC=3 SCAR=24.8
| |||||||||||
| 11 | 0 | my ($class,$agent,$frame,$args,$raw_caller)=@_; | |||||||||
| 12 | |||||||||||
| 13 | # prevent deeper traces if we are in here | ||||||||||
| 14 | 0 | $agent->max_depth($frame->{depth}); | |||||||||
| 15 | |||||||||||
| 16 | 0 | ▶ | if(my $blessed=&Scalar::Util::blessed($class)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 17 | 0 | $class=$blessed; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | # hide internal calls from our trace | ||||||||||
| 21 | 0 | ▶ | return 0 if $frame->{caller_class} eq $class; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | |||||||||||
| 23 | 0 | return 1; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1 | 1; | |||||||||
| 27 | __END__ | ||||||||||