Kernel::WebApp::Plugin::1130DebuggerPerlProfiler

NAME

Kernel::WebApp::Plugin::1130DebuggerPerlProfiler – Perl profiler support (only available for development server).

PUBLIC INTERFACE

register()

provides request-level profiling for the development web server based on Devel::NYTProf.

To enable the profiler, please activate enable_debugger_perl_profiler in WebApp.conf, start your development server with

    PERL5OPT=-d:NYTProf NYTPROF='trace=1:start=no' scripts/DevelopmentWebserver.pl

and append the parameter X-OTRS-API-Debug-PerlProfiler=$YourIdentifier to the URL you want to profile, or send a header with this name.

This creates a file called nytprof/$YourIdentifier/$UrlPath.out, which you can process with

    nytprofhtml -f nytprof/$YourIdentifier/$UrlPath.out -o /tmp

Then point your browser at file:///tmp/index.html to view the results.

It's also possible to do the profiling using the frontend, run in the browser console

    // request-path: String|RegExp
    // profile-name: String
    enablePerlProfiler('{request-path}', '{profile-name}')

to disable the profiling, just run

    // for a specific path
    disablePerlProfiler('{request-path}')

    // all
    disablePerlProfiler()
Scroll to Top