Skip to content

Instantly share code, notes, and snippets.

View fabpot's full-sized avatar
😀
Happy!

Fabien Potencier fabpot

😀
Happy!
View GitHub Profile
@javiereguiluz
javiereguiluz / har2blackfire.php
Last active August 29, 2015 14:14
Transforms HAR file format to Blackfire file format
<?php
// Transforms a HAR (HTTP Archive) file into a BK file to analyze it using
// Blackfire Profiler (https://blackfire.io/)
//
// USAGE:
// $ php har2blackfire.php name-of-the-HAR-file.har
$harFile = $argv[1];
$harData = json_decode(file_get_contents($harFile), true);