<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sun, 19 May 2013 23:28:53 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Dave Marshall's Blog: Log memory usage using declare and ticks in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/10202</guid>
      <link>http://www.phpdeveloper.org/news/10202</link>
      <description><![CDATA[<p>
Posted to his blog, <i>Dave Marshall</i> has <a href="http://www.davedevelopment.co.uk/2008/05/12/log-memory-usage-using-declare-and-ticks-in-php/">a tip</a> that uses declare and a trick or two to check out the memory usage of your scripts.
</p>
<blockquote>
As far as I know, there isn't any memory footprint profiling in Xdebug, I think there was at some point but they removed it because it was a little flaky. I like to monitor the memory usage within my scripts, and I've found this simple snippet can help.
</blockquote>
<p>
The script defines a log_memory function that pushes the memory and time information into a session value. The register_tick_function method is used to add log_memory to the handler and its called over and over from inside his for loop.
</p>
]]></description>
      <pubDate>Fri, 16 May 2008 12:05:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[YoungCoders.com: The PHP Construct You've Never Used]]></title>
      <guid>http://www.phpdeveloper.org/news/6304</guid>
      <link>http://www.phpdeveloper.org/news/6304</link>
      <description><![CDATA[<p>
As <a href="http://devzone.zend.com/node/view/id/926">pointed out</a> by the Zend Developer Zone today, there's a <a href="http://www.youngcoders.com/showthread.php?t=22319">useful forum post</a> over on the YoungCoders.com website that talks about very useful feature that some PHP developers just don't use - ticks.
</p>
<blockquote>
You've probably never used it, never saw it, or never found a practical use for ticks, a underused and powerful feature of PHP that allows you to implement exceptions in PHP4, do intensive debugging and profiling, check database connections, turn PHP into an event driven language, or harness complex control over your code.
</blockquote>
<p>
<a href="http://www.youngcoders.com/showthread.php?t=22319">The post</a> talks about what ticks are, how to enable them, and a few examples of how to use them. Check out more about them in <a href="http://www.php.net/manual/en/control-structures.declare.php#control-structures.declare.ticks">this page</a> on the PHP Manual.
</p>]]></description>
      <pubDate>Tue, 19 Sep 2006 07:38:14 -0500</pubDate>
    </item>
  </channel>
</rss>
