<?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>Dovyski &#187; profiling</title>
	<atom:link href="http://www.dovyski.com/tag/profiling/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dovyski.com</link>
	<description>Pointless things somehow useful</description>
	<lastBuildDate>Fri, 07 May 2010 02:42:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mrdoob stats &#8211; Actionscript performance monitor</title>
		<link>http://www.dovyski.com/2010/03/mrdoob-stats-actionscript-performance-monitor/</link>
		<comments>http://www.dovyski.com/2010/03/mrdoob-stats-actionscript-performance-monitor/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 03:14:16 +0000</pubDate>
		<dc:creator>Dovyski</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[profiling]]></category>

		<guid isPermaLink="false">http://www.dovyski.com/?p=2403</guid>
		<description><![CDATA[Create and develop a game is hard task, but optimize one is even harder. You can ruin a perfect game design and a beautiful artset by filling the source code with useless and/or unnecessary stuff. In order to keep things &#8230; <a href="http://www.dovyski.com/2010/03/mrdoob-stats-actionscript-performance-monitor/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Create and develop a game is hard task, but optimize one is even harder. You can ruin a perfect game design and a beautiful artset by filling the source code with useless and/or unnecessary stuff. In order to keep things in control a performance monitor comes in handy.</p>
<p><a href="http://www.dovyski.com/wp-content/uploads/2010/02/Anatoly-Zenkov-Portrait-of-Mr.-Doob.jpg"><img class="aligncenter size-full wp-image-2404" title="Anatoly Zenkov - Portrait of Mr. Doob" src="http://www.dovyski.com/wp-content/uploads/2010/02/Anatoly-Zenkov-Portrait-of-Mr.-Doob.jpg" alt="" width="180" height="240" /></a></p>
<p><a href="http://code.google.com/p/mrdoob/" onclick="pageTracker._trackPageview('/outgoing/code.google.com/p/mrdoob/?referer=');">Mrdoob stats</a> provides a simple info box that will help you monitor your code performance. It can tell you the following:</p>
<ul>
<li><strong>FPS</strong> Frames per second, how many frames were rendered in 1 second. The higher the number, the better.</li>
<li><strong>MS</strong> Milliseconds needed to render a frame. The lower number, the better.</li>
<li><strong>MEM</strong> Memory your code is using, if it increases per frame is VERY wrong.</li>
<li><strong>MAX</strong> Maximum memory the application reached.</li>
</ul>
<p>It is another great tool to know what is happing under the hood.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dovyski.com/2010/03/mrdoob-stats-actionscript-performance-monitor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Profiling and debugging PHP</title>
		<link>http://www.dovyski.com/2009/04/profiling-and-debugging-php/</link>
		<comments>http://www.dovyski.com/2009/04/profiling-and-debugging-php/#comments</comments>
		<pubDate>Sun, 26 Apr 2009 04:59:19 +0000</pubDate>
		<dc:creator>Dovyski</dc:creator>
				<category><![CDATA[Web development]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[profiling]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.dovyski.com/?p=83</guid>
		<description><![CDATA[Reviewing the code is an important task every programmer must (or should) perform. Sometimes the program you have just coded looks nice and fast, because all the tests you have performed using your well-controlled devel0pment sandbox showed no errors. Unless &#8230; <a href="http://www.dovyski.com/2009/04/profiling-and-debugging-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><small><strong></strong></small></p>
<p>Reviewing the code is an important task every programmer must (or should) perform. Sometimes the program you have just coded looks nice and fast, because all the tests you have performed using your well-controlled devel0pment sandbox showed no errors.</p>
<p>Unless you are a god when programming, you may have left some little performance tweaks behind. Most of the time you can replace several method calls with the returned value stored in a variable, or avoiding nested for/whiles, or freeing a result set in order to save some memory, etc. In the end, all those tweaks can make the difference between a smooth user experience and an extremely painful development problem.</p>
<p>If you are a PHP developer, you can use the free <a title="PHP Quick Profiler" href="http://particletree.com/features/php-quick-profiler/" onclick="pageTracker._trackPageview('/outgoing/particletree.com/features/php-quick-profiler/?referer=');">PHP Quick Profiler (PQP)</a> to help profiling and debugging your code. No more echoing vars, objects or queries in order to find performance mistakes. Using an automated tool to show you what is going on, you can save a lot of time and ensure your app is stable and fast. I read about PQP at <a href="http://www.webappers.com/2009/04/25/php-quick-profiler-firebug-for-php/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.webappers.com/2009/04/25/php-quick-profiler-firebug-for-php/?referer=');">WebAppers</a> these days. They also have a screenshot (below) and a <a href="http://particletree.com/examples/pqp/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/particletree.com/examples/pqp/?referer=');">link for a demo</a>.</p>
<p><a title="PHP Quick Profiler" href="http://particletree.com/features/php-quick-profiler/" onclick="pageTracker._trackPageview('/outgoing/particletree.com/features/php-quick-profiler/?referer=');"><img class="aligncenter" src="http://www.webappers.com/img/2009/04/php-profiler.jpg" alt="PHP Profiler" /></a></p>
<p>If you want more options for profiling and debugging, I recommend <a href="http://www.xdebug.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.xdebug.org/?referer=');">Xdebug</a>, which is a very powerful tool. We have been using it at <a href="http://www.decadium.com" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.decadium.com?referer=');">Decadium</a> for a long time.  Some of the features include stack traces and function traces in error messages (with full parameter display, function/file name and line indications), information about memory allocation and protection for infinite recursions.</p>
<p>Xdebug is also free and has support for Windows and Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dovyski.com/2009/04/profiling-and-debugging-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
