2. - Probe is a PHP extension that gathers the raw performance profiles
- Agent is a server-side daemon that aggregates and forwards profiles to
blackfire.io
- Client is a CLI tool used to trigger profiling
- Companion is a web browser extension used to trigger profiling
- Website is used to visualize the profiles
5 COMPONENTS
3. - The Probe, the Agent, and the Client work on Linux and MacOS X
- The Probe works with PHP 5.3, 5.4, 5.5, and 5.6
- The Companion is currently only available for Google Chrome
- The Website works on all browsers but Internet Explorer
REQUIREMENTS
4. https://blackfire.io/getting-started#installation
Install the repo so you can install the binaries
Install the Agent with your server credentials from :
https://blackfire.io/account/credentials#server
Install the Agent Service
Configure the Client – run “blackfire config”
Install the Probe
INSTALLATION
5. You can run it via a convenient chrome extension or the command line.
(I did not have enough time to figure out how to get it working with a vagrant box setup but the
chrome extension would work like magic with a native dev environment)
In my case I am using the command line tool, you can run it like this:
blackfire --slot=7 --samples=10 run ./my-script.php --your-script-options and arguments
Output:
Profiling: [########################################] 10/10
You can view the graph at: https://blackfire.io/slots/b4409ed7-4e50-4e97-8251-00cb35b42604/graph
More info at https://blackfire.io/doc/cli-tutorial
RUN THE PROFILER