Heim >Backend-Entwicklung >PHP-Tutorial >性能分析 - 对于PHP的CLI脚本程序,怎么对他进行性能测试?不在浏览器里面。

性能分析 - 对于PHP的CLI脚本程序,怎么对他进行性能测试?不在浏览器里面。

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:08:501005Durchsuche

写了个CLI的php程序脚本,感觉有点慢,能在命令姐界面对他进行性能分析吗?不借助浏览器。

回复内容:

写了个CLI的php程序脚本,感觉有点慢,能在命令姐界面对他进行性能分析吗?不借助浏览器。

简单一点的分析可以用log的形式写入文件来查看,复杂一点的调试可以用phpdbg来进行。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel:Laravel Ajax POST数据问题Nächster Artikel:用ThinkPHP怎样开发api?