NAME

Plack::Middleware::Profiler::KYTProf - Profile psgi app with KYTProf

SYNOPSIS

builder {
    enable "Plack::Middleware::Profiler::KYTProf";
    $app;
};

DESCRIPTION

Plack::Middleware::Profiler::KYTProf is the PSGI app profiler. Use enable_profile_if, logger and threshold option in production environment.

Use profiles if you need application specific profiling. See the sample profile Plack::Middleware::Profiler::KYTProf::Profile::TemplateEngine.

OPTIONS

NOTE that some options expect a code reference. Maybe, you feel it is complicated. However that will enable to control them programmably. It is more useful to your apps.

enable_profile_if

default

sub { 1 }

Use code reference if you want to enable profiling programmably This option is optional.

profiles

You can add profiling target modules if you use this option.

default

[
    'Plack::Middleware::Profiler::KYTProf::Profile::TemplateEngine',
    'Plack::Middleware::Profiler::KYTProf::Profile::KVS'
];
namespace_regex

See Devel::KYTProf POD.

default

undef
ignore_class_regex

See Devel::KYTProf POD.

default

undef
context_classes_regex

See Devel::KYTProf POD.

logger

See Devel::KYTProf POD.

default

undef
threshold

See Devel::KYTProf POD.

default

undef
remove_linefeed

See Devel::KYTProf POD.

default

undef
mutes

See Devel::KYTProf POD.

default

undef

SOURCE AVAILABILITY

This source is in Github:

http://github.com/dann/p5-plack-middleware-profiler-kytprof

CONTRIBUTORS

Many thanks to:

AUTHOR

Dann <techmemo@gmail.com>

SEE ALSO

Devel::KYTProf

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.