Name
memory_get_peak_usage
Synopsis
int memory_get_peak_usage([bool actual
])
Returns the peak memory usage so far, in bytes, of the currently
running script. If actual
is specified and
true
, returns the actual bytes
allocated; otherwise, it returns the bytes allocated through PHP’s
internal memory allocation routines.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.