note 110323 added to control-structures.declare
| From: | KamilPawelkiewicz | Date: | Wed, 10 Oct 2012 18:56:55 +0000 |
| Subject: | note 110323 added to control-structures.declare | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-191237@lists.php.net to get a copy of this message | ||
I've created memory usage monitor class using tick event.
The result is returned in a fancy graph using GD library.
You can get the source, readme and example script at:
https://github.com/kampaw/profiler
Usage is very simple:
<?php
require('profiler.php');
$profiler = new profiler;
declare(ticks = 1000);
// monitor started
// insert your code here
$profiler->chart();
?>
----
Server IP: 69.147.83.199
Probable Submitter: 77.253.9.144
----
Manual Page -- http://www.php.net/manual/en/control-structures.declare.php
Edit -- https://master.php.net/note/edit/110323
Del: integrated -- https://master.php.net/note/delete/110323/integrated
Del: useless -- https://master.php.net/note/delete/110323/useless
Del: bad code -- https://master.php.net/note/delete/110323/bad+code
Del: spam -- https://master.php.net/note/delete/110323/spam
Del: non-english -- https://master.php.net/note/delete/110323/non-english
Del: in docs -- https://master.php.net/note/delete/110323/in+docs
Del: other reasons-- https://master.php.net/note/delete/110323
Reject -- https://master.php.net/note/reject/110323
Search -- https://master.php.net/manage/user-notes.php