CGI::Application::Plugin::DevPopup::Timing(3pm)

CGI::Application::Plugin::DevPopup::Timing3pm

Show timing information about cgiapp stages

Usage

    use CGI::Application::Plugin::DevPopup;
    use CGI::Application::Plugin::DevPopup::Timing;
    The rest of your application follows
    ...

Output will look roughly like this:

    Timings
    Total runtime: 3.1178 sec.
    Application started at: Thu Sep 22 02:55:35 2005
    From                        To                              Time taken
    -------------------------------------------------------------------------
    init                        prerun                          0.107513 sec.
    prerun                      before expensive operation      0.000371 sec.
    before expensive operation  after expensive operation       3.006688 sec.
    after expensive operation   load_tmpl(dp.html)              0.000379 sec.
    load_tmpl(dp.html)          postrun                         0.002849 sec.

Version

version 1.08

Add_timing

You can add your own timing points within your application by calling the hook at "devpopup_addtiming" with a short label. The table above was created with the following code:

    $self->call_hook('devpopup_addtiming', 'before expensive operation');
    sleep 3;
    $self->call_hook('devpopup_addtiming', 'after expensive operation');

Releases

10 releases since Debian 4.0 (Etch); the text changed 6 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9–10
  7. 11–13

Author

Rhesa Rozendaal, [email protected]

Bugs

Please report any bugs or feature requests to [email protected], or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=CGI-Application-Plugin-DevPopup>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

From libcgi-application-plugin-devpopup-perl 1.08+~cs2.4-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.