downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

memory_get_usage> <main
Last updated: Fri, 13 Nov 2009

view this page in

memory_get_peak_usage

(PHP 5 >= 5.2.0)

memory_get_peak_usagePHP によって割り当てられたメモリの最大値を返す

説明

int memory_get_peak_usage ([ bool $real_usage = false ] )

PHP スクリプトに割り当てられたメモリの最大値を、バイト単位で返します。

パラメータ

real_usage

これを TRUE に設定すると、システムが割り当てた実際のメモリの大きさを取得します。 省略したり FALSE を設定したりすると、 emalloc() が使用するメモリのみを報告します。

返り値

目盛りの最大値をバイト数で返します。

変更履歴

バージョン 説明
5.2.1 この関数を使用するために、 --enable-memory-limit でコンパイルすることは必須ではなくなりました。
5.2.0 real_usage が追加されました。

参考



add a note add a note User Contributed Notes
memory_get_peak_usage
There are no user contributed notes for this page.

memory_get_usage> <main
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites