<?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>Mon, 06 Oct 2008 18:36:38 -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>
  </channel>
</rss>
