PHP code example of onigoetz / profiler
1. Go to this page and download the library: Download onigoetz/profiler 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/ */
onigoetz / profiler example snippets
'providers' => array(
'Onigoetz\Profiler\Support\Laravel\ProfilerServiceProvider',
...
),
'aliases' => array(
...
'Stopwatch' => 'Onigoetz\Profiler\Stopwatch'
...
)
Stopwatch::start('stuff to benchmark');
//do your stuff
Stopwatch::stop('stuff to benchmark');