带有 qcachegrind 报告的 xdebug "There is no source available for the following function ..."

xdebug with qcachegrind reports "There is no source available for the following function ..."

我开始将 xdebug 与 qcachegrind 结合使用,并且第一次测试效果很好。日志文件被记录下来,我可以用 qcachegrind 打开它。但现在我遇到的问题是我无法获得每个功能的详细信息。对于 php::exec_curl 我只得到信息

"There is no source available for the following function: php::curl_exec. This is because its source file cannot be found: php:internal. Add the folder of this file to the source folder list. This list can be found in the configuration dialog.

我在 OSX 上使用 MAMP (/Applications/MAMP/bin/php/php5.6.2/bin/php)。我的第一个尝试是将整个 MAMP 文件夹简单地添加到源列表中,但这没有用。

现在我想问一下是否有人可能已经遇到过同样的挑战并且知道如何解决它?

exec_curl 是一个内部 PHP 函数,意味着它已在 CQCacheGrind 无法访问它的源代码,也无法访问该函数所做的任何踪迹。对于XDebug/PHP/QCacheGrind,这个函数只是一个黑盒子,需要一些参数和returns一些输入。

为什么需要查看来源?坦率地说,你不应该关心里面发生了什么。所有内部功能都经过测试并证明可以正常工作。