This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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); |