1. Go to this page and download the library: Download bahge/analisys-tools 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/ */
bahge / analisys-tools example snippets
use Bahge\AnalisysTools\Domain\PerformanceTracker;
($i=0; $i < (2 ** 6); $i++) {
sleep(rand(0,1)); // Apenas como critério de teste, para gerar randomicamente uma pausa
$performanceTracker->addMarkTracker("Iteração: $i");
}
echo $performanceTracker->getEventsTracker() . PHP_EOL;
echo $performanceTracker->getEventsTrackerToJson() . PHP_EOL;
echo $performanceTracker->getTotals() . PHP_EOL;
echo $performanceTracker->calc() . PHP_EOL;