mirror of
https://github.com/php/php-src.git
synced 2026-03-31 04:32:19 +02:00
add memory usage info to print
This commit is contained in:
@@ -729,11 +729,16 @@ PHPDBG_COMMAND(print) /* {{{ */
|
||||
if (EG(in_execution)) {
|
||||
phpdbg_writeln("VM Return\t%d", PHPDBG_G(vmret));
|
||||
}
|
||||
|
||||
phpdbg_writeln("Classes\t\t%d", zend_hash_num_elements(EG(class_table)));
|
||||
phpdbg_writeln("Functions\t%d", zend_hash_num_elements(EG(function_table)));
|
||||
phpdbg_writeln("Constants\t%d", zend_hash_num_elements(EG(zend_constants)));
|
||||
phpdbg_writeln("Included\t%d", zend_hash_num_elements(&EG(included_files)));
|
||||
|
||||
phpdbg_writeln(
|
||||
"Memory\t\t%.3f/%.3f (kB)",
|
||||
(float) (zend_memory_usage(1 TSRMLS_CC)/1024),
|
||||
(float) (zend_memory_usage(0 TSRMLS_CC)/1024));
|
||||
|
||||
phpdbg_print_breakpoints(PHPDBG_BREAK_FILE TSRMLS_CC);
|
||||
phpdbg_print_breakpoints(PHPDBG_BREAK_SYM TSRMLS_CC);
|
||||
phpdbg_print_breakpoints(PHPDBG_BREAK_METHOD TSRMLS_CC);
|
||||
|
||||
Reference in New Issue
Block a user