profiler = new PhpQuickProfiler(PhpQuickProfiler::getMicroTime()); } /** * Gather information to be used to display profiling * @return array of stored profiling information */ function getData() { $profiler =& $this->profiler; $profiler->db = new PKPDBProfiler(); $profiler->gatherConsoleData(); $profiler->gatherFileData(); $profiler->gatherMemoryData(); $profiler->gatherQueryData(); $profiler->gatherSpeedData(); return $profiler->output; } } class PKPDBProfiler { /** @var $queryCount property to wrap DB connection query count */ var $queryCount; /** * Constructor. */ function PKPDBProfiler() { $dbconn =& DBConnection::getInstance(); $this->queryCount = $dbconn->getNumQueries(); $this->queries =& Registry::get('queries', true, array()); } } ?>