Public Member Functions | |
__construct (string $msg='') | |
__destruct () | |
start (string $msg='') | |
stop () | |
Public Attributes | |
const | XHPROF_PATH = '/usr/share/xhprof/xhprof_lib' |
const | XHPROF_URL = '/xhprof' |
class XHProf
Il you need to "profile" some part of code
Install the pecl/xhprof extension
Add XHPROF_PATH and XHPROF_URL in config/local_paths.inc.php (if needed)
Before the code $prof = new XHProf("something useful");
If the code contains an exit() or a redirect() you must also call (before) unset($prof);
php-errors.log will give you the URL of the result.
Galette\Common\XHProf::__construct | ( | string | $msg = '' | ) |
Default constructor
string | $msg | Message(default '') |
Galette\Common\XHProf::__destruct | ( | ) |
Destruct the object
Galette\Common\XHProf::start | ( | string | $msg = '' | ) |
Start profiling
string | $msg | Message (default '') |
Galette\Common\XHProf::stop | ( | ) |
Stops profiling