Profile.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Profile/Controller/ControlProfiling.pm ↑ Summary
1 # ABSTRACT: Profile your Catalyst application with Devel::NYTProf
2 package CatalystX::Profile;
3 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 $CatalystX::Profile::VERSION = '0.02';
5 }
6 1 ▶use Moose::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use CatalystX::InjectComponent;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use Devel::NYTProf;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶after 'setup_finalize' => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
13 1 my $self = shift;
14 1 $self->log->debug('Profiling is active');
15 1 DB::enable_profile();
16 1 };
17  
18 1 ▶after 'setup_components' => sub {
Subroutine __ANON__: called CC=1 SCAR=0.0
19 1 my $class = shift;
20 1 CatalystX::InjectComponent->inject(
21 into => $class,
22 component => 'CatalystX::Profile::Controller::ControlProfiling',
23 as => 'Controller::Profile'
24 );
25 1 };
26  
27 1 1;
28  
29  
30 __END__
« Profile/Controller/ControlProfiling.pm ↑ Summary