CatalystX::Profile::Controller::ControlProfiling - Control profiling within your application


CatalystX-Profile documentation Contained in the CatalystX-Profile distribution.

Index


Code Index:

NAME

Top

CatalystX::Profile::Controller::ControlProfiling - Control profiling within your application

VERSION

Top

version 0.01

DESCRIPTIONS

Top

Some actions you can use to control profiling

ACTIONS

Top

stop_profiling

Stop and finish profiling, and write all the output. This can be a bit slow while the profiling data is written, but that's normal.

AUTHOR

Top

  Oliver Charles <oliver.g.charles@googlemail.com>

COPYRIGHT AND LICENSE

Top


CatalystX-Profile documentation Contained in the CatalystX-Profile distribution.

# ABSTRACT: Control profiling within your application
package CatalystX::Profile::Controller::ControlProfiling;
our $VERSION = '0.01';
use Moose;
use namespace::autoclean;

BEGIN { extends 'Catalyst::Controller' }

use Devel::NYTProf;

sub stop_profiling : Local {
    my ($self, $c) = @_;
    DB::finish_profile();
    $c->log->debug('Profiling has now been disabled');
    $c->body('Profiling finished');
}

1;


__END__