Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/funkymed/xhprof
Little class to help to use xhprof
https://github.com/funkymed/xhprof
Last synced: about 2 months ago
JSON representation
Little class to help to use xhprof
- Host: GitHub
- URL: https://github.com/funkymed/xhprof
- Owner: funkymed
- Created: 2013-12-30T15:00:43.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-30T16:54:09.000Z (almost 11 years ago)
- Last Synced: 2024-04-13T16:21:43.631Z (9 months ago)
- Language: PHP
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Xhprof
=============
a little class to help to use xhprof on your projectGitHub : https://github.com/funkymed/xhprof
##Author
Cyril Pereira http://www.cyrilpereira.com
##Documentation
###Installation
First, you need to intall xhprof http://php.net/xhprofwith brew :
~~~
> brew search xhprof
php53-xhprof php54-xhprof php55-xhprof
> brew install php53-xhprof
~~~###Configuration
rename the file config_xhprof.sample.php in config_xhprof.php and edit it
~~~
define('XHPROF_PATH', "Your local xhprof lib");
define('XHPROF_NAME', "your project namespace");
define('XHPROF_URL', "http://localhost/xhprof/");
~~~XHPROF_PATH : is the real path of your xhprof lib directory
installed with brew it will be in : /usr/local/Cellar/php[php version]-xhprof/[code]/xhprof_lib/utils/
XHPROF_NAME : is the namespace to define your project
XHPROF_URL : is your local url to xhprof website
####Local xhprof website
http://pecl.php.net/package/xhprofdownload the last package and put it in your localhost
###Example :
~~~
include "xhprof.php";Xhprof::header();
include "dummy/dummy.php";
Your bootstrap here
Xhprof::footer();
~~~##How to use :
call your website and add the parameter in url ?xhprof=1you will have a link in the bottom of your page to display xhprof