Forrest logo
tool overview
On this page you find all important commands for the CLI tool blackfire. If the command you are looking for is missing please ask our AI.

blackfire

Blackfire is a command line tool and a profiling service that helps developers analyze, optimize, and improve the performance of their PHP applications. It provides detailed insights into how CPU cycles and memory are being used in an application, allowing developers to identify bottlenecks and optimize critical sections of code.

Blackfire offers various features such as flame graphs, which visualize the profiling data, and performance comparisons to track improvements over time. It also provides integration with popular PHP development frameworks, including Symfony and Laravel.

To use Blackfire, developers need to install the Blackfire probe extension and configure it with their project. Once enabled, they can trigger a profiling session from the command line or through specific requests in their application. The profiling data is then sent to the Blackfire service, where it is processed and displayed in a user-friendly web interface.

Overall, Blackfire is a powerful tool for PHP developers, helping them optimize code performance and enhance the speed and efficiency of their applications.

List of commands for blackfire:

  • blackfire:tldr:1e6e1 blackfire: Run the profiler and collect 10 samples.
    $ blackfire --samples=${10} run ${php filename-php}
    try on your machine
    explain this command
  • blackfire:tldr:308db blackfire: Launch the Blackfire agent on a specific socket.
    $ blackfire agent --socket="${tcp:--127-0-0-1:8307}"
    try on your machine
    explain this command
  • blackfire:tldr:3bb4a blackfire: Launch the Blackfire agent.
    $ blackfire agent
    try on your machine
    explain this command
  • blackfire:tldr:3c5bd blackfire: Upload a profiler file to the Blackfire web service.
    $ blackfire upload ${filename}
    try on your machine
    explain this command
  • blackfire:tldr:66a30 blackfire: Initialize and configure the Blackfire client.
    $ blackfire config
    try on your machine
    explain this command
  • blackfire:tldr:87b2b blackfire: View the status of profiles on the Blackfire web service.
    $ blackfire status
    try on your machine
    explain this command
  • blackfire:tldr:990ce blackfire: Run the profiler on a specific program.
    $ blackfire run ${php filename-php}
    try on your machine
    explain this command
  • blackfire:tldr:af93b blackfire: Run the profiler and output results as JSON.
    $ blackfire --json run ${php filename-php}
    try on your machine
    explain this command
tool overview