Giter VIP home page Giter VIP logo

plack-middleware-debug-profiler-nytprof's Introduction

NAME

Plack::Middleware::Debug::Profiler::NYTProf - Runs NYTProf on your app

SYNOPSIS

use Plack::Builder;

my $app = ...; ## Build your Plack App

builder {
    enable 'Debug', panels =>['Profiler::NYTProf'];
    $app;
};

# or with options

builder {
    enable 'Debug', panels => [
        [
            'Profiler::NYTProf',
            base_URL => 'http://example.com/NYTProf',
            root     => '/path/to/NYTProf',
            minimal  => 1,
        ]
    ];
    $app;
};

DESCRIPTION

Adds a debug panel that runs and displays Devel::NYTProf on your perl source code.

OPTIONS

This debug panel defines the following options.

root

Where to store nytprof.out and nytprofhtml output (default: '/tmp').

base_URL

By default, this module will grab requests with the string nytprofhtml to the server, and deliver the reports with Plack::App::File. If instead you don't want to serve the reports from the same server you're debugging, then you can set this option to the URL where the root folder above can be reached.

exclude

List of excluded paths (default: [qw(..css ..png ..ico ..js)]).

minimal

By default, nytprofhtml will generate graphviz .dot files and block/sub-level reports. Setting this to a true value will disable this behaviour and make nytprofhtml considerably faster.

no_merge_evals

By defaut, nytprofhtml will merge string evals in the reports. Setting this to a true value will disable this behaviour. Warning: this will make nytprohtml considerably slower, and might timeout the HTTP request.

Environment Variable

NYTPROF

You can customize Devel::NYTProf's behaviour by setting the NYTPROF environment variable as specified in its documentation. However, this module requires the following to hold:

addpid=1

start=begin

SEE ALSO

Plack::Middleware::Debug Devel::NYTProf

AUTHOR

Sebastian de Castelberg, <[email protected]>

CONTRIBUTORS

Nuba Princigalli, <[email protected]>

COPYRIGHT & LICENSE

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

plack-middleware-debug-profiler-nytprof's People

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.