Profile/Controller/ControlProfiling.pm

filter: Statementstmt 57.8% 11 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod 100% 1 / 1 totaltotal 66.6% 18 / 27 CC 1 SCAR 1.5
CC
1
Cov
58%
stop_profiling
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
↑ Summary Profile.pm »
1 # ABSTRACT: Control profiling within your application
2 package CatalystX::Profile::Controller::ControlProfiling;
3 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 $CatalystX::Profile::Controller::ControlProfiling::VERSION = '0.02';
5 }
6 0 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.4
7 0 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.4
8  
9 1 ▶BEGIN { extends 'Catalyst::Controller' }
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 0 ▶use Devel::NYTProf;
Subroutine BEGIN: called CC=1 SCAR=0.4
12  
13 0 ▶sub stop_profiling : Local {
Subroutine stop_profiling: not called CC=1 SCAR=6.9
Pod documented
14 0 my ($self, $c) = @_;
15 0 DB::finish_profile();
16 0 $c->log->debug('Profiling has now been disabled');
17 0 $c->body('Profiling finished');
18 0 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.4
19  
20 1 1;
21  
22  
23 __END__
↑ Summary Profile.pm »