Installing and updating Blackfire should be a quick process. This document will guide you through the steps.
To start using Blackfire, we are going to install the following:
Blackfire uses a custom Debian repository to distribute its packages; it is compatible with most Debian-based distributions like Ubuntu and Linux-Mint.
blackfire
package:
During the agent installation, a new
blackfire-agent
service was created to
start, stop, and restart it. Whenever you modify the agent
configuration, restart it.
/var/log/blackfire/agent.log
. Change the log file or the log level in the
agent configuration file.
blackfire-php
package:
PHP will likely crash when Blackfire is used when one of the following
extensions is also enabled: XHProf
, Pinba
,
Suhosin
, and Uopz
.
If XDebug
is installed, the PHP engine may not behave as
expected; consider disabling it when profiling.
If pcov
extension is installed, Blackfire will not
behave as expected; consider disabling it when profiling.
You can now enable monitoring for your environments.
To profile applications, you need to use a profiling client:
Profile from a browser via our browser extensions (Web applications only).
Profile from the command line via the blackfire
tool
(Web applications, APIs, command line tools, daemons, and more).
Configure it with your personal credentials:
Start profiling via: