打开google chrome,浏览你最喜欢的网站,然后右击>打开inspect element,然后转到timeline选项卡,你可以记录google chrome渲染的时间线。
有没有php基准测试工具可以检索信息,获取函数的时间线,以及webserver呈现的变量?
谢谢。
发布于 2011-09-04 11:35:48
最著名的工具是Xdebug。
然而,手动代码分析(也就是所谓的代码分析)的效率并不逊色。只需将几个microtime(1)调用放入代码中,分析输出并相应地移动它们
发布于 2011-09-04 11:34:58
许多框架都有内置的分析对象。CodeIgniter有一个非常好的分析工具,你可以使用它:
示例:
$this->benchmark->mark('my_mark_start');
// Some code happens here...
$this->benchmark->mark('my_mark_end');
$this->benchmark->mark('another_mark_start');
// Some more code happens here...
$this->benchmark->mark('another_mark_end');发布于 2016-04-01 04:46:45
我使用的是XHProf,它是FB (~ 2011 )开发来取代xdebug的。我附上了一些屏幕截图,你可以告诉它是否有你需要的:)



https://stackoverflow.com/questions/7297241
复制相似问题