usage of a PHP script.
PHP_FE(print_r, NULL)
#if MEMORY_LIMIT
PHP_FE(memory_get_usage, NULL)
+ PHP_FE(memory_get_peak_usage, NULL)
#endif
PHP_FE(register_shutdown_function, NULL)
PHP_FUNCTION(unserialize);
#if MEMORY_LIMIT
PHP_FUNCTION(memory_get_usage);
+PHP_FUNCTION(memory_get_peak_usage);
#endif
PHPAPI void php_var_dump(zval **struc, int level, int verbose TSRMLS_DC);
RETURN_LONG(AG(allocated_memory));
}
/* }}} */
+/* {{{ proto int memory_get_peak_usage()
+ Returns the peak allocated by PHP memory */
+PHP_FUNCTION(memory_get_peak_usage) {
+ RETURN_LONG(AG(allocated_memory_peak));
+}
+/* }}} */
#endif
/*