Re: profiling extension and minimal-php-sapi
| From: | Marcus Boerger | Date: | Sat, 20 May 2006 21:56:22 +0000 |
| Subject: | Re: profiling extension and minimal-php-sapi | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23595@lists.php.net to get a copy of this message | ||
Hello Moritz,
apply for a pecl account (http://php.net) and commit the stuff
as two projects. The minimal stuff might eventually be of interest
for testing.
best regards
marcus
Saturday, May 20, 2006, 11:16:28 PM, you wrote:
> Hello,
>
> I made two extensions for PHP that I?m want to share, but I do not really
> know how to do it ;)
>
> One is a profiling extension, called PhProfile:
> - works with zend optimizer and similar (as opposed to xdebug)
> - counts the number of function calls and the total send self time
> for each function
> - usable either by calling phprofile_start(); at the beginning and
> print_r(phprofile_get()) at the end of the script or
> - by setting up a ?dump-profile? parameter in your php.ini (like
> phprofile.quick_dump_key=?prof?) and appending the parameter prof to the url
> (script.php?prof=1). If done, a html table with all function calls sorted by
> self time is appended to the page.
> - If phprofile.quick_dump_mode is set to ?2?, the profiling data is
> displayed in a popup
> Source: http://mo.e-sport.com/phprofiler.html
>
> The other is a embedded webserver SAPI, targeted at minimal PHP
> implementations for administrative interfaces.
> - HTTP and HTTPS-Server
> - CLI-Support
> - Minimal resource usage
> - Makes it possible to build a 3MB php binary that can run
> php-scripts and serves a webadmin interface.
> Source: http://mo.e-sport.com/miniphp.html
>
> Thanks for reading ;)
>
> Moritz
>
>
Best regards,
Marcus