Skip to content
Extraits de code Groupes Projets
Valider 7d402e65 rédigé par diosmosis's avatar diosmosis
Parcourir les fichiers

Add xhprof to composer.json file & remove README.

parent 1b874a92
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -40,6 +40,13 @@
"piwik/device-detector": "2.*"
},
"require-dev": {
"phpunit/phpunit": "~4.1"
}
"phpunit/phpunit": "~4.1",
"facebook/xhprof": "dev-master"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/phacility/xhprof"
}
]
}
Piwik is distributed with a copy of XHProf, the PHP profiler created by Facebook.
## Installing XHProf
First, XHProf must be built (this guide assumes you're using a linux variant):
* Navigate to the XHProf extension directory.
$ cd /path/to/piwik/tests/lib/
$ wget http://pecl.php.net/get/xhprof
$ tar -xzvf xhprof
* Build XHProf.
$ phpize
$ ./configure
$ make
xhprof.so will now exist in the ./modules directory.
* Configure PHP to use XHProf. Add the following to your php.ini file:
```
[xhprof]
extension=/path/to/piwik/tests/lib/xhprof-0.9.4/extension/modules/xhprof.so
xhprof.output_dir=/path/to/output/dir
```
Replace /path/to/output/dir with an existing directory. All your profiles will be
stored there.
Restart your webserver and you're done.
XHProf will now store and process profiles of all running PHP processes. Access the reports via the XHPprof interface.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter