Using a browser is the easiest way to profile web applications.
If you need more flexibility, like profiling APIs,
POST requests, or
adding specific HTTP headers, use the Blackfire CLI instead.
To profile a web application from Firefox or Google Chrome:
Log in on Blackfire.io;
Browse to the URL you want to profile;
Open the extension by clicking on its icon in the browser toolbar;
Click on the “Profile” button;
After a few seconds, click on “View Call Graph” or “View Timeline”.
Did you know that browsers can give you the cURL arguments and options like HTTP headers to use for any web page you browser? Including Ajax requests?
This feature is known as “copy-as-cUrl”. The result can be used directly with the Blackfire CLI to profile requests from the command line and to automate profiling in scripts:
The browser extensions are not able to profile 304 HTTP responses as some Web
Servers remove custom headers such as the ones added by Blackfire to operate
correctly. To avoid 304 HTTP responses, the browser extensions remove any
conditional headers from requests; if you want to profile 304 responses, use
the Blackfire CLI
curl command instead.