blib/lib/Devel/ebug/Backend/Plugin/StackTrace.pm

filter: Statementstmt 63.1% 12 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 2 totaltotal 61.5% 16 / 26 CC 1 SCAR 1.8
CC
1
Cov
63%
stack_trace
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/Devel/ebug/Backend/Plugin/Output.pm ↑ Summary bin/ebug_backend_perl »
1 package Devel::ebug::Backend::Plugin::StackTrace;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 6 ▶use Devel::StackTrace;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 6 our $VERSION = '0.69'; # VERSION
8  
9 6 ▶sub register_commands {
Subroutine register_commands: called CC=1 SCAR=0.0
Pod undocumented
10 6 return ( stack_trace => { sub => \&stack_trace } );
11  
12 }
13  
14 0 ▶sub stack_trace {
Subroutine stack_trace: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my($req, $context) = @_;
16 0 my $trace = Devel::StackTrace->new;
17 0 my @frames = $trace->frames;
18 # remove our internal frames
19 0 shift @frames;
20 0 shift @frames;
21 0 shift @frames;
22 0 return { stack_trace => \@frames };
23 }
24  
25  
26 6 1;
27  
28 __END__
« blib/lib/Devel/ebug/Backend/Plugin/Output.pm ↑ Summary bin/ebug_backend_perl »