Changeset View
Changeset View
Standalone View
Standalone View
extension/xhprof.c
| Show First 20 Lines • Show All 981 Lines • ▼ Show 20 Lines | #endif | ||||
| case ZEND_INCLUDE_ONCE: | case ZEND_INCLUDE_ONCE: | ||||
| func = "include_once"; | func = "include_once"; | ||||
| add_filename = 1; | add_filename = 1; | ||||
| break; | break; | ||||
| case ZEND_REQUIRE_ONCE: | case ZEND_REQUIRE_ONCE: | ||||
| func = "require_once"; | func = "require_once"; | ||||
| add_filename = 1; | add_filename = 1; | ||||
| break; | break; | ||||
| case ZEND_DECLARE_FUNCTION: | |||||
| /* This fixes xhprof_004.phpt and does not seem to break anything. | |||||
| It is very unclear how or why this works. The value of 'func' is | |||||
| not used when we set 'add_filename'. */ | |||||
| func = "???_declare_op_???"; | |||||
| add_filename = 1; | |||||
| break; | |||||
| default: | default: | ||||
| func = "???_op"; | func = "???_op"; | ||||
| break; | break; | ||||
| } | } | ||||
| /* For some operations, we'll add the filename as part of the function | /* For some operations, we'll add the filename as part of the function | ||||
| * name to make the reports more useful. So rather than just "include" | * name to make the reports more useful. So rather than just "include" | ||||
| * you'll see something like "run_init::foo.php" in your reports. | * you'll see something like "run_init::foo.php" in your reports. | ||||
| ▲ Show 20 Lines • Show All 1,044 Lines • Show Last 20 Lines | |||||