Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bestpractical/masonx-profiler
https://github.com/bestpractical/masonx-profiler
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bestpractical/masonx-profiler
- Owner: bestpractical
- Created: 2021-12-10T21:22:53.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-15T18:58:03.000Z (over 2 years ago)
- Last Synced: 2023-04-13T18:31:27.568Z (over 1 year ago)
- Language: Perl
- Homepage: http://metacpan.org/release/MasonX-Profiler
- Size: 48.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
MasonX::Profiler - Mason per-component profilerVERSION
This document describes version 0.07 of MasonX::Profiler.SYNOPSIS
In the Mason handler:use MasonX::Profiler;
my $ah = HTML::Mason::ApacheHandler->new(
preamble => 'my $p = MasonX::Profiler->new($m, $r);',
# ...
);Note that CGIHandler and Apache2Handler 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 "" block, not outside it.INSTALLATION
MasonX::Profiler uses the standard perl module install process:cpansign -v # optional; see SIGNATURE for details
perl Makefile.PL
make # or 'nmake' on Win32
make test
make installDESCRIPTION
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 }}} ENDSEach 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
Best Practical Solutions, LLCAutrijus Tang
COPYRIGHT
Copyright 2002, 2003, 2004 by Autrijus Tang .This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.See