* ISSO_MT_START - Define the microtime() value at the top of your
* script and this will calculate the total execution
* time
+* ISSO_MEMORY_START - The result of memory_get_usage(true) at the start of
+* the script.
* SVN - Place SVN keywords (like $Id) to display the information on output
*
* @author Blue Static
$debug .= "\n\t<li><strong>Total Execution Time:</strong> " . round($this->modules['functions']->fetch_microtime_diff(ISSO_MT_START), 10) . "</li>";
}
+ // total memory usage KB
+ if (defined('ISSO_MEMORY_START'))
+ {
+ $end = memory_get_usage(true);
+ $debug .= "\n\t<li><strong>Total Memory Usage:</strong> " . ($end - ISSO_MEMORY_USAGE)/1024 . " KB</li>";
+ }
+
// debug notices
$debug .= "\n\t<li>\n\t\t<select>\n\t\t\t<option>Debug Notices (" . sizeof($this->debuginfo) . ")</option>";
foreach ((array)$this->debuginfo AS $msg)
// initialize the database
define('ISSO_MT_START', microtime());
+define('ISSO_MEMORY_START', memory_get_usage(true));
define('ISSO_CHECK_POST_REFERER', 1);
require_once('./includes/version.php');