<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>XHPROF &#8211; HU Xiaoxu</title>
	<atom:link href="https://blog.ihuxu.com/tag/xhprof/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.ihuxu.com</link>
	<description>a software engineer&#039;s blog</description>
	<lastBuildDate>Sun, 03 Mar 2024 04:27:43 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>利用 xhprof（PHP）扩展进行 WEB 性能分析</title>
		<link>https://blog.ihuxu.com/web-performance-analysis-using-php-xhprof/</link>
					<comments>https://blog.ihuxu.com/web-performance-analysis-using-php-xhprof/#respond</comments>
		
		<dc:creator><![CDATA[HU Xiaoxu]]></dc:creator>
		<pubDate>Sat, 05 Dec 2015 13:37:41 +0000</pubDate>
				<category><![CDATA[Computer Language]]></category>
		<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Original]]></category>
		<category><![CDATA[XHPROF]]></category>
		<guid isPermaLink="false">http://www.ihuxu.com/blog/?p=512</guid>

					<description><![CDATA[最近工作有些小忙，经常加班，偶尔还会通宵。但最终热门微博“混合流”顺利地全量上线了。可是，从性能角度来说，还是有不少的提升空间的。 下面说下利用 xhprof 来进行 WEB 性能的分析。 安装 xhprof 扩展 官方的文档胜过一切 =&#62; http://php.net/xhprof 注意：如果想利用 xhprof 绘图，那么需要将系统默认禁用函数打开。 部署xhprof的运行环境 经过上面的配置，在你跑过项目后，xhprof 会输出一份报告文件。不过，这份文件的内容是被序列化的数组。所以，需要搭建一个能够读取该数据文件的 WEB 环境。 这里给一份 xhprof 环境的代码：http://pan.baidu.com/s/1bnLvmrl 之后通过访问 xhprof 的环境，你会看到如下报告界面。 xhprof 文件列表（/xhprof_html/list.php） 图标形式的 xhprof 报告(/xhprof_html/index.php） Function Name 方法名称 Calls 被调用次数 Incl. Wall Time 该函数执行时间（包含内部其他函数调用的时间） Excl. Wall Time 该函数执行时间（不包含内部其他函数调用的时间） 流程图形式的xhprof报告（/xhprof_html/callgraph.php） 需要关注的几点： 同一方法被过多次的调用（也许是无谓的循环导致的） 耗时是否落到了外部接口上（会影响TPS &#8211; 每秒请求数量） 是否有内存的过多消耗（会影响计算效率）]]></description>
		
					<wfw:commentRss>https://blog.ihuxu.com/web-performance-analysis-using-php-xhprof/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
