Extension proposal: memprof - memory usage profiler
| From: | Arnaud Le Blanc | Date: | Mon, 20 May 2013 14:05:12 +0000 |
| Subject: | Extension proposal: memprof - memory usage profiler | ||
| Groups: | php.pecl.dev | ||
| Request: | Send a blank email to pecl-dev+get-10661@lists.php.net to get a copy of this message | ||
Hi,
I've written an extension for profiling memory usage of PHP scripts, and I
would like to release it on PECL.
It's currently hosted at https://github.com/arnaud-lb/php-memory-profiler
It differs from more simple php memory profilers in that is takes into
account frees occurring after a function has returned. E.g. after executing
$str=str_repeat("x", 1<<20), memprof will report that str_repeat
allocated 1M, but only if $str has not been freed yet at the time the
profile is dumped. This is similar to what memory leak profilers do.
Best Regards,