Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23592 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51318 invoked by uid 1010); 20 May 2006 21:16:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 51303 invoked from network); 20 May 2006 21:16:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 May 2006 21:16:36 -0000 X-PHP-List-Original-Sender: m.moeller@e-sport.com X-Host-Fingerprint: 62.146.120.29 mx1.e-sport.com Linux 2.5 (sometimes 2.4) (4) Received: from ([62.146.120.29:45161] helo=mx1.e-sport.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 1C/32-19568-2378F644 for ; Sat, 20 May 2006 17:16:35 -0400 Received: from p508487fa.dip0.t-ipconnect.de ([80.132.135.250] helo=goofy) by mx1.e-sport.com with esmtpa (Exim 4.52) id 1FhYoI-0003KD-Bm for internals@lists.php.net; Sat, 20 May 2006 23:16:31 +0200 To: Date: Sat, 20 May 2006 23:16:28 +0200 Message-ID: <014f01c67c52$a94b6190$14b2a8c0@goofy> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0150_01C67C63.6CD43190" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcZ8UqfeiPJd9x0MT7y9nIT6xbc53g== X-TargetUser: Subject: profiling extension and minimal-php-sapi From: m.moeller@e-sport.com (=?iso-8859-1?Q?Moritz_M=F6ller?=) ------=_NextPart_000_0150_01C67C63.6CD43190 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, =20 I made two extensions for PHP that I=92m want to share, but I do not = really know how to do it ;) =20 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 =93dump-profile=94 parameter in your php.ini = (like phprofile.quick_dump_key=3D=94prof=94) and appending the parameter prof = to the url (script.php?prof=3D1). 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 =932=94, the profiling = data is displayed in a popup Source: http://mo.e-sport.com/phprofiler.html =20 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 =20 Thanks for reading ;) =20 Moritz =20 =20 ------=_NextPart_000_0150_01C67C63.6CD43190--