[ Mini Kiebo ]
Server: Windows NT DESKTOP-5B8S0D4 6.2 build 9200 (Windows 8 Professional Edition) i586
Path:
D:
/
Backup
/
14082024
/
Data
/
htdocs
/
htdocs
/
ojs
/
248
/
lib
/
pkp
/
classes
/
core
/
[
Home
]
File: PKPProfiler.inc.php
<?php /** * @file classes/core/PKPProfiler.inc.php * * Copyright (c) 2013-2019 Simon Fraser University * Copyright (c) 2000-2019 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @class PKPProfiler * @ingroup core * * @brief Basic shell class used to wrap the PHP Quick Profiler Class */ require_once('./lib/pkp/lib/pqp/classes/PhpQuickProfiler.php'); class PKPProfiler { /** @var $profiler object instance of the PQP profiler */ var $profiler; /** * Constructor. */ function PKPProfiler() { $this->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()); } } ?>