<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,16 +1,42 @@
 &lt;?php
+/**
+ * Common
+ *
+ * LICENSE
+ *
+ * This source file is subject to the new BSD license that is bundled
+ * with this package in the file LICENSE.
+ *
+ * @category   Common
+ * @package    Controller_Plugin
+ * @copyright  Copyright (c) 2008 Johan Nilsson. (http://www.markupartist.com)
+ * @license    New BSD License
+ */
 class Common_Controller_Plugin_Profiler extends Zend_Controller_Plugin_Abstract
 {
     private $startTime;
     private $endTime;
     private $db;
 
-    public function __construct($db) {
+    /**
+     * Will enable the database profiler and set the start time for the page
+     * execution time.
+     * @param Zend_Db_Adapter_Abstract $db
+     * @return void
+     */
+    public function __construct(Zend_Db_Adapter_Abstract $db) {
         $this-&gt;db = $db;
         $this-&gt;startTime = microtime(true);
         $this-&gt;db-&gt;getProfiler()-&gt;setEnabled(true);
     }
 
+    /**
+     * Stops the page execution timer. Will also calculate data that the db
+     * profiler has collected during the execution.
+     * 
+     * Results is echoed in a html comment block direct.
+     * @return void
+     */
     public function __destruct()
     {
         $this-&gt;endTime = microtime(true);</diff>
      <filename>library/Common/Controller/Plugin/Profiler.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>238b0e51f317e838d37d9bce4045b049f76b7e8f</id>
    </parent>
  </parents>
  <author>
    <name>Johan Nilsson</name>
    <email>github@markupartist.com</email>
  </author>
  <url>http://github.com/johannilsson/phplifestream/commit/9baec3098e8f2a8066ab224d2a51c2470c814418</url>
  <id>9baec3098e8f2a8066ab224d2a51c2470c814418</id>
  <committed-date>2009-03-26T14:52:32-07:00</committed-date>
  <authored-date>2009-03-26T14:52:32-07:00</authored-date>
  <message>Added comments</message>
  <tree>6c5d823347e9f15e4770bf3267af7c2c092fe629</tree>
  <committer>
    <name>Johan Nilsson</name>
    <email>github@markupartist.com</email>
  </committer>
</commit>
