1. Go to this page and download the library: Download axios/xhprof-composer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
axios / xhprof-composer example snippets
namespace xhprof;
/*** begin ***/
dump('this is example for use xhprof-composer');
$a = pow(2, 10);
dump($a);
/*** end ***/
$report = XHProf::end('test');
dump($report);
$run_id = XHProf::getRunId('test');
dump($run_id);