PHP code example of shamanzpua / laravel-profiler

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

    

shamanzpua / laravel-profiler example snippets


 shamanzpua\LaravelProfiler\ProfilerServiceProvider::class

 performance_profiling_start("SOME_LOG_NAME");

 profiler_breakpoint("BREAK_POINT_NAME_1");
 sleep(2);
 profiler_breakpoint("BREAK_POINT_NAME_1");
 //some code
 profiler_breakpoint("BREAK_POINT_NAME_1");
    
 performance_profiling_stop("LAST_BREAK_POINT_NAME");