Blackfire
Reviewedbyfl
🔥
Profile PHP performance issues.
Blackfire is a PHP profiler that integrates with fortrabbit to help identify performance bottlenecks and optimize your application's speed.
About Blackfire
Blackfire is a PHP profiler that continuously verifies and improves app performance throughout development and production by providing detailed performance metrics and optimization recommendations. Blackfire enables developers to write performance tests alongside standard test suites and provides actionable recommendations to improve application speed.
Using Blackfire in production yields better insights once your app receives traffic. Understanding code performance helps you refactor for better speed and potentially reduce hosting costs.
Pricing
Blackfire operates on a bring-your-own-license (BYOL) model, requiring a paid plan once your app is live in production with a domain routed. See Blackfire pricing for available plans.
Integration
Enable Blackfire on your fortrabbit app by adding your server credentials from Blackfire to the dashboard. Here's the setup process in three steps:
Over at Blackfire
- Sign up or log in to Blackfire.
- Click your Profile > Account -> Credentials -> My Server Credentials
- Copy the credentials: Server ID and Server Token
At fortrabbit
- Log in to the dashboard
- Navigate to your app > environment > PHP > Debugging
- Enable Blackfire
- Paste the Blackfire Server ID and Server Token
- Save the PHP settings
- Wait at least one minute, so that the containers are restarted with the new configuration
In your browser
- Install the Chrome Extension or the Firefox one depending on your browser
- Browse to your app
- Click the Blackfire button to start profiling
Limitations
CLI profiling is not directly supported; profiling command-line calls requires using the Blackfire PHP SDK.