Galette API documentation
Gestionnaire d’Adhérents en Ligne Extrêmement Tarabiscoté mais Tellement Efficace
1.0.0
Galette\Common\XHProf Class Reference

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'
 

Detailed Description

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.

Author
Kenny Katzgrau katzg.nosp@m.rau@.nosp@m.gmail.nosp@m..com
Johan Cwiklinski johan.nosp@m.@x-t.nosp@m.nd.be

Constructor & Destructor Documentation

◆ __construct()

Galette\Common\XHProf::__construct ( string  $msg = '')

Default constructor

Parameters
string$msgMessage(default '')

◆ __destruct()

Galette\Common\XHProf::__destruct ( )

Destruct the object

Member Function Documentation

◆ start()

Galette\Common\XHProf::start ( string  $msg = '')

Start profiling

Parameters
string$msgMessage (default '')
Returns
void

◆ stop()

Galette\Common\XHProf::stop ( )

Stops profiling

Returns
void

The documentation for this class was generated from the following file: