You appear to be a bot. Output may be restricted
Description
Trace the current memory/peak usage, if requiredNow traces real memory usages, not just that allocated by emalloc() Optionally, trace the current value of the memory_limit
Usage
bw_get_memory_usage();
Parameters
Returns
voidSource
File name: oik-bwtrace/includes/bwtrace.phpLines:
1 to 13 of 13
function bw_get_memory_usage() { global $bw_trace_memory; $memory = null; if ( $bw_trace_memory ) { $memory .= memory_get_usage( true ); $peak = memory_get_peak_usage( true ); $memory .= "/$peak"; $memory .= " "; $memory .= ini_get( "memory_limit" ); $memory .= " "; } return( $memory ); }View on GitHub View on Trac