| 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__ | ||