【发布时间】:2016-12-24 11:25:49
【问题描述】:
考虑一个内置的 php 函数,例如file_put_contents()。在 Nginx 上运行 php-fpm 是否可以记录该函数的所有用法?
我正在考虑的示例输出是这样的:
timestamp path_to_the_file_which_used_the_function parameters_passed_to_the_function
【问题讨论】:
考虑一个内置的 php 函数,例如file_put_contents()。在 Nginx 上运行 php-fpm 是否可以记录该函数的所有用法?
我正在考虑的示例输出是这样的:
timestamp path_to_the_file_which_used_the_function parameters_passed_to_the_function
【问题讨论】:
启用profiling in Xdebug。这会记录多次调用每个函数、执行时间和调用堆栈。但是,它可能不会显示传递的参数。
【讨论】: