Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aurimasniekis/xhprorf_sandbox
A small sandbox for profiling scripts with xhprof
https://github.com/aurimasniekis/xhprorf_sandbox
Last synced: about 2 months ago
JSON representation
A small sandbox for profiling scripts with xhprof
- Host: GitHub
- URL: https://github.com/aurimasniekis/xhprorf_sandbox
- Owner: aurimasniekis
- License: mit
- Created: 2015-10-13T10:06:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-13T10:40:07.000Z (over 9 years ago)
- Last Synced: 2023-03-22T05:16:35.617Z (almost 2 years ago)
- Language: PHP
- Size: 152 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
xhprorf_sandbox
===============
A small sandbox for profiling scripts with xhprofRequirements
------------* **xhprof** extension
* For Homebrew PHP
```
$ brew install php55-xhprof
```
* For Debian/Ubuntu systems
```
$ apt-get install php5-xhprof
```Usage
-----1. Install dependencies
```
$ composer install
```
2. You have two options:
A. Option A:
1. Write your script inside `src/script.php` file
2. Run profiler$ bin/profile
B. Option B:
1. Run profile with argument with your script file$ bin/profile /some/dir/magic/script.php
3. Open view server
```
$ bin/view
```4. Open [http://127.0.0.1:9001](http://127.0.0.1:9001)
5. Clear profile data```
$ bin/clear
```