Uploading Existing Profiles

The Blackfire CLI tool can upload any profile generated by the following tools:

  • XHProf;
  • Xdebug;
  • any tools able to generate a callgrind output.

To upload a profile, you need to install the Blackfire CLI tool.

You can now use blackfire upload to upload profiles:

1
$ blackfire upload profile.callgrind

At the end of the upload, blackfire outputs the URL where the profile can be found.

You can even ask Blackfire to aggregate several files into one:

1
$ blackfire upload profile1.callgrind profile2.callgrind profile3.callgrind ...

Before uploading the file to our platform, Blackfire first optimizes the data into a much smaller representation (on average, it compresses the profile by a factor of 1000 for Callgrind profiles); so feel free to feed it with your biggest profiles.