App:       PHP Script Profiler
Version:   1.0.0
Author:    MT Jordan <
[email protected]>
Copyright: 2014
License:   zlib/libpng License
**********************************************************************************
PHP Script Profiler is a script profiler that is designed to help determine
execution time or memory bottlenecks in PHP scripts.
*********************************************************************************
PHP Script Profiler Features:
    * Diagnose execution time errors or memory errors for intensive SQL queries
    * List unnecessary or unknown included/required files
    * Create unlimited profile points
    * Print to screen or save to local file
Requirements:
    * PHP 5.4+
*********************************************************************************
Usage:
<?php
include 'profiler.php';
$profile = new profiler;
//Create profile point
$point_1 = $profile->start_profile( 'Profile Description 1' );
//Code to profile - ie: SQL Query, display data, etc.
//End profile point
$profile->stop_profile( $point_1 );
//Create profile point
$point_2 = $profile->start_profile( 'Profile Description 2' );
//Code to profile - ie: SQL Query, display data, etc.
//End profile point
$profile->stop_profile( $point_2 );
//Print to screen
echo "<pre>{$profile->print_profile()}</pre>";
//Write to file
$profile->print_profile( 'logs/profile_log.txt' );
?>