Re: [PHP-DEV] Tweaks to memory_get_usage() and memory_get_peak_usage()

2015-04-27 Thread Dmitry Stogov
Hi Kalle, I don't think we should support all possible use cases introducing new C functions and modifiers. Users already have ability to get all the necessary information, and they may wrap memory_get_udage() as they like. Thanks. Dmitry. On Mon, Apr 27, 2015 at 10:26 AM, Kalle Sommer Nielsen

Re: [PHP-DEV] Tweaks to memory_get_usage() and memory_get_peak_usage()

2015-04-27 Thread Nikita Popov
On Mon, Apr 27, 2015 at 9:26 AM, Kalle Sommer Nielsen ka...@php.net wrote: Howdy After working with a couple of projects, I found it a little annoying that I would have to call memory_get_usage() twice first for emalloc()'d memory and after again for real memory, so I made a small patch

[PHP-DEV] Tweaks to memory_get_usage() and memory_get_peak_usage()

2015-04-27 Thread Kalle Sommer Nielsen
Howdy After working with a couple of projects, I found it a little annoying that I would have to call memory_get_usage() twice first for emalloc()'d memory and after again for real memory, so I made a small patch that allows retrieving both values in a single call[1]. The patch itself is rather