Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
consistent timings
  • Loading branch information
ZNeumann authored and lavarou committed Nov 6, 2024
commit 1a90428dc9b7cb11542b1c41adb1f0eb5a1c2649
11 changes: 3 additions & 8 deletions agent/php_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ extern zval** nr_php_get_return_value_ptr(TSRMLS_D);
} else { \
func_return_value_ptr = nr_php_get_return_value_ptr(); \
func_return_value = func_return_value_ptr ? *func_return_value_ptr : NULL;\
nr_php_observer_fcall_end(execute_data, \
func_return_value_ptr ? *func_return_value_ptr : NULL); \
}
#endif

Expand All @@ -303,9 +305,6 @@ extern zval** nr_php_get_return_value_ptr(TSRMLS_D);
__attribute__((unused)); \
if (!was_executed) { \
NR_PHP_WRAPPER_CALL \
} \
if (!is_begin) { \
nr_php_observer_fcall_end(execute_data, func_return_value); \
} \
\
if (zcaught) { \
Expand All @@ -323,11 +322,7 @@ extern zval** nr_php_get_return_value_ptr(TSRMLS_D);
if (!was_executed) { \
NR_PHP_WRAPPER_CALL \
} \
if (!is_begin) { \
func_return_value_ptr = nr_php_get_return_value_ptr(); \
nr_php_observer_fcall_end(execute_data, \
func_return_value_ptr ? *func_return_value_ptr : NULL); \
} else { \
if (is_begin) { \
nr_php_observer_fcall_begin_late(execute_data, txn_start_time);\
} \
if (zcaught) { \
Expand Down