for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: darkilliant
* Date: 6/23/18
* Time: 6:10 PM
*/
namespace Darkilliant\ProcessBundle\StopwatchDumper;
use Symfony\Component\Stopwatch\Stopwatch;
class StopwatchHtmlDumper
{
public function dump(Stopwatch $stopwatch, string $filepath)
ob_start();
require_once __DIR__.'/../Resources/views/profiling.html.php';
$html = ob_get_clean();
file_put_contents($filepath, $html);
}