GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MASONX::PROFILER (3)

.ds Aq ’

NAME

MasonX::Profiler - Mason per-component profiler

CONTENTS

VERSION

This document describes version 0.06 of MasonX::Profiler, released June 22, 2004.

SYNOPSIS

In the Mason handler:



    use MasonX::Profiler;
    my $ah = HTML::Mason::ApacheHandler->new(
        preamble => my $p = MasonX::Profiler->new($m, $r);,
        # ...
    );



Note that <B>CGIHandlerB> and <B>Apache2HandlerB> works, too.

Alternatively, in httpd.conf, before loading your PerlHandler:



    PerlModule MasonX::Profiler
    PerlSetVar MasonPreamble "my $p = MasonX::Profiler->new($m, $r);"



Note that if you are using virtual hosts, the two lines above must be inside the <VirtualHost> block, not outside it.

DESCRIPTION

This module prints per-component profiling information to STDERR (usually directed to the Apache error log). Its output looks like this:



    =Mason= 127.0.0.1 - /NoAuth/webrt.css BEGINS {{{
    =Mason= 127.0.0.1 -     /NoAuth/webrt.css {{{
    =Mason= 127.0.0.1 -         /Elements/Callback {{{
    =Mason= 127.0.0.1 -         /Elements/Callback }}} 0.0008
    =Mason= 127.0.0.1 -     /NoAuth/webrt.css }}} 0.0072
    =Mason= 127.0.0.1 - /NoAuth/webrt.css }}} ENDS



Each row contains five whitespace-separated fields: =Mason=, remote IP address, -, indented component name, and how many seconds did it take to process that component, including all subcomponents called by it.

The beginning and end of the initial request is represented by the special time fields BEGINS and ENDS.

AUTHORS

Autrijus Tang <autrijus@autrijus.org>

COPYRIGHT

Copyright 2002, 2003, 2004 by Autrijus Tang <autrijus@autrijus.org>.

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

See <http://www.perl.com/perl/misc/Artistic.html>

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 MASONX::PROFILER (3) 2004-06-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.