PHP code example of jaxwilko / profiler

1. Go to this page and download the library: Download jaxwilko/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/ */

    

jaxwilko / profiler example snippets


use JaxWilko\Profiler\Watcher;

Watcher::start();
// execute application logic
Watcher::end(__DIR__ . '/output.html');

$profile = Watcher::end();

Watcher::setMode(Watcher::OUTPUT_ARR);
$profile = Watcher::end();

jax_watcher_start();
// execute application logic
jax_watcher_end($outputFile);